https://supertokens.com/ logo
Title
i

iLostName

03/03/2023, 11:34 AM
hello everyone, I have a problem with my application, I am using fastapi and it gives an error that maybe is not possible to solve given my use of uvicorn: https://nekobin.com/negewoyibe.py the error is:
RuntimeWarning: Inconsistent mode detected, check if you are using the right asgi / wsgi mode
can anyone help me?
r

rp

03/03/2023, 11:35 AM
hey @iLostName
@KShivendu can help here
k

KShivendu

03/03/2023, 11:49 AM
Hi @iLostName, have you tried using
mode='asgi'
? If it still doesn't work, then I'll need more info the replicate the issue because I don't see any config or the
init()
call in the snippet. Please share a more detailed code so that I can replicate 😄
i

iLostName

03/03/2023, 12:34 PM
yes
10-15 min and i share more code
I think it gives this error because the main loop is started after I try to inizalize Supertokens
hey guys
k

KShivendu

03/03/2023, 3:36 PM
Thanks. Checking.