Open hoanhan101 opened 5 years ago
did some debugging with @julianlambert today, it turned out that, the error was caused by the use of eventlet.monkey_patch()
- how we handled websocket threading.
it turns out that stripe can't be monkey patched 🐒. dang.
Basically that means that because stripe is still running in a blocking way instead of asynchronously it cannot function with our server. SO, we are gonna use stripe from the front end instead and just send the payment data to a backend web-socket.
@julianlambert will you please build the front end stripe api communication — translate the stripe payment processor to the front end please? — sincerely julian (from hoanhs computer)
Options for fixing stripe payment
@acencini suggested to use gunicorn
instead of eventlet
at the class demo today
calling
stripe.Charge.create()
under a flask/websocket endpoint raiseswhile calling it outside is fine.