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

Asyncio issue with flask when run with eventlet or greenlet #532

Open
sattvikc opened this issue Oct 7, 2024 · 0 comments
Open

Asyncio issue with flask when run with eventlet or greenlet #532

sattvikc opened this issue Oct 7, 2024 · 0 comments

Comments

@sattvikc
Copy link
Collaborator

sattvikc commented Oct 7, 2024

Steps to reproduce:

  • Create a supertokens app using python flask framework.
  • run the generated backend using gunicorn + eventlet gunicorn app:app -k eventlet --timeout 1000 -w 1 --bind 0.0.0.0:3001
  • Update Call API to make multiple requests in parallel

Some of the requests will fail with 500 error stating Event loop is already running

We might need to implement a separate middleware for flask to support asyncio.

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