GithubHelp home page GithubHelp logo

shleeable / shleepay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thurloat/fosspay

4.0 4.0 1.0 262 KB

Donation collection for FOSS groups and individuals

License: MIT License

Makefile 1.22% Python 43.74% HTML 45.50% JavaScript 9.39% Dockerfile 0.15%

shleepay's People

Contributors

amolith avatar benharri avatar ddeva-vistar avatar ddevault avatar edwardbetts avatar michcioperz avatar oniricorpe avatar perflyst avatar shleeable avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

valisoymedia

shleepay's Issues

Investigate SQLite

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.

Can't actually accept donations?

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`)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.