AppOffline error after calling stripe.checkout.get_token

I’m trying to charge the user the $35.00 but I keep getting App is offline:

**The following code successfully calls a server function, then successfully calls ‘’‘stripe.checkout.get_token’‘’, then fails to call the same server function that was previously working:

Code Sample:

python
print('#1')
anvil.server.call('dummy_function')
print('#2')
token, info = stripe.checkout.get_token(amount=3500, 
            currency="USD",                                      
            # billing_address=True, 
            title='$35/month', 
            icon_url= anvil.http.url_decode(anvil.server.get_app_origin())+ "/_/theme/small_logo2.png", 
            description='Personal monthly',
            email=anvil.users.get_user()['email'])
print('#3', token, info['email'])
anvil.server.call('dummy_function')
print('#4')

The output is:

'#1'
'#2'
'#3 xxx correct@email.address'
AppOffline at line 13

Any idea how I can fix this App Offline issue?

Thanks for reporting moved to bug reports. Does commenting out icon_url change anything?
We’ll try to reproduce and go from there.

Thanks. Commenting out icon_url didn’t change anything.

1 Like

Please let me know if there’s anything else I need to include to make this easier/quicker. I know the Anvil staff work diligently on these type of things.

Thanks - we’ve managed to reproduce so we expect to ship a fix soon (the reproduction code was very helpful). We’ll update this thread when we do.

1 Like

Sounds good. Thank you. Looking forward to this fix.

Hi there, has there been a fix issued yet?