Hey, I'm receiving the following error. (I'm worki...
# support-questions
t
Hey, I'm receiving the following error. (I'm working on macOS) RuntimeError: asyncio.run() cannot be called from a running event loop sys:1: RuntimeWarning: coroutine 'Supertokens.send_telemetry' was never awaited RuntimeWarning: Enable tracemalloc to get the object allocation traceback
r
hey @TH
which version of the SDK?
λ
we are using the hosted sdk on your servers
r
no i mean which version of the supertokens-python SDK?
λ
0.7.2
r
huh.. that'd odd. Can you open an issue about this?
λ
will do 🙏
r
the app still works though right? it's just a warning that's getting printed out
λ
no the app doesnt want to start at all
it works for me fine tho (windows same version of sdk)
r
hmm.
λ
same project
r
which version of python?
(on the one that doesn't work)
λ
3.10.4
r
and on your machine?
λ
on windows?
3.10.4 as well
r
that's really strange
ok we will work on this ASAP! thanks
λ
appreciated thank you 😄
s
@Λ C Ξ L X R D hello
could you share your init call?
λ
sure
s
also can you share a bit more details on your setup? I am assuming fastapi on uvicorn
λ
Copy code
py
init(
    app_info=InputAppInfo(
        app_name="E-learning Websecurity",
        website_domain="http://localhost:8000",
        api_domain="http://localhost:8000"
        ),
    supertokens_config=SupertokensConfig(
        connection_uri=connectionURI,
        api_key=API_key,
        ),
    framework='fastapi',
    recipe_list=[
        session.init(
            error_handlers=session.InputErrorHandlers(
                on_unauthorised=unauthorised_handler,
                ),
            override=session.InputOverrideConfig(functions=override_session_functions)
            ),
        emailpassword.init(),
        ],
    mode='wsgi'
    )
s
are you running on uvicorn or gunicorn ?
λ
yes fastapi on uvicorn
s
mode='asgi' should be used for that combination
λ
O
maybe that was the cause of the problems all along 😅
s
seems like, but it's strange you don't see it on windows
λ
i see it but it doesnt prevent the server from running
s
okay
thank you for the find, we are adding a fix so that app start is not prevented
λ
Thank you for your help 😊🙏
3 Views