shleeable / shleepay Goto Github PK
View Code? Open in Web Editor NEWThis project forked from thurloat/fosspay
Donation collection for FOSS groups and individuals
License: MIT License
This project forked from thurloat/fosspay
Donation collection for FOSS groups and individuals
License: MIT License
fosspay_1 | sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) CHECK constraint failed: donations
fosspay_1 | [SQL: INSERT INTO donations (user_id, project_id, type, amount, created, updated, comment, active, payments) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)]
fosspay_1 | [parameters: (2, None, 'monthly', 67, '2020-04-19 13:13:37.131947', '2020-04-19 13:13:37.131962', '', 1, 1)]
SQLite seems to give me Issues with donations table.
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`)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.