Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't actually accept donations? #9

Open
mitchellurgero opened this issue Oct 15, 2020 · 0 comments
Open

Can't actually accept donations? #9

mitchellurgero opened this issue Oct 15, 2020 · 0 comments

Comments

@mitchellurgero
Copy link

Getting this error running in production:

Oct 15 16:07:43 2020-10-15 21:07:43,048 - fosspay.app - ERROR - Exception on /donate [POST]
Oct 15 16:07:43 Traceback (most recent call last):
Oct 15 16:07:43 File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2447, in wsgi_app
Oct 15 16:07:43 response = self.full_dispatch_request()
Oct 15 16:07:43 File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1952, in full_dispatch_request
Oct 15 16:07:43 rv = self.handle_user_exception(e)
Oct 15 16:07:43 File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1821, in handle_user_exception
Oct 15 16:07:43 reraise(exc_type, exc_value, tb)
Oct 15 16:07:43 File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise
Oct 15 16:07:43 raise value
Oct 15 16:07:43 File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1950, in full_dispatch_request
Oct 15 16:07:43 rv = self.dispatch_request()
Oct 15 16:07:43 File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1936, in dispatch_request
Oct 15 16:07:43 return self.view_functions[rule.endpoint](**req.view_args)
Oct 15 16:07:43 File "/app/code/fosspay/fosspay/common.py", line 74, in wrapper
Oct 15 16:07:43 result = f(*args, **kwargs)
Oct 15 16:07:43 File "/app/code/fosspay/fosspay/blueprints/html.py", line 271, in donate
Oct 15 16:07:43 customer = stripe.Customer.retrieve(user.stripe_customer)
Oct 15 16:07:43 File "/usr/local/lib/python3.6/dist-packages/stripe/api_resources/abstract/api_resource.py", line 12, in retrieve
Oct 15 16:07:43 instance.refresh()
Oct 15 16:07:43 File "/usr/local/lib/python3.6/dist-packages/stripe/api_resources/abstract/api_resource.py", line 16, in refresh
Oct 15 16:07:43 self.refresh_from(self.request("get", self.instance_url()))
Oct 15 16:07:43 File "/usr/local/lib/python3.6/dist-packages/stripe/api_resources/abstract/api_resource.py", line 39, in instance_url
Oct 15 16:07:43 "id",
Oct 15 16:07:43 stripe.error.InvalidRequestError: Could not determine which URL to request: Customer instance has invalid ID: None, <class 'NoneType'>. ID should be of type `str` (or `unicode`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant