https://supertokens.com/ logo
Title
e

execreate

10/26/2022, 9:55 AM
Hey guys, I have a question regarding gunicorn. I run my FastAPI application in Docker with gunicorn:
CMD [ "gunicorn", "main:app", "--workers", "8", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8080" ]
and I am getting this error from supertokens:
RuntimeWarning: Inconsistent mode detected, check if you are using the right asgi / wsgi mode
Supertokens docs say
use wsgi mode if you are running using gunicorn
. Should I still use wsgi mode even if I have Uvicorn workers?
r

rp

10/26/2022, 10:48 AM
Hey. @KShivendu can help here.
k

KShivendu

10/26/2022, 10:56 AM
Hey @execreate, I'll get back to you with the exact answer to your question in a while. But for now my answer would be: It's a warning (not error) and imo you can ignore it. But please check the APIs to confirm that it works 🙂
e

execreate

10/26/2022, 11:10 AM
Hey @KShivendu ! Thanks 🙂