Hi Team, We are trying to deploy our application ...
# support-questions
j
Hi Team, We are trying to deploy our application with Supertokens as Managed service written using python FastAPI on Google cloud run using Gunicorn, but we getting below error while running the application via a Docker. File "/home/amitesh/.cache/pypoetry/virtualenvs/platform-services-HiUDhGbI-py3.8/lib/python3.8/site-packages/supertokens_python/supertokens.py", line 161, in __init__ asyncio.create_task(self.send_telemetry()) File "/home/amitesh/.pyenv/versions/3.8.5/lib/python3.8/asyncio/tasks.py", line 381, in create_task loop = events.get_running_loop() RuntimeError: no running event loop [2021-12-18 18:12:02 +0530] [255385] [INFO] Worker exiting (pid: 255385) sys:1: RuntimeWarning: coroutine 'Supertokens.send_telemetry' was never awaited RuntimeWarning: Enable tracemalloc to get the object allocation traceback - The error comes while running the application using a Docker file containing command: "CMD exec gunicorn --bind :$PORT --workers 1 --worker-class uvicorn.workers.UvicornWorker --threads 8 app.main:app" - The application runs perfectly fine while using command: "uvicorn app.main:app --reload" Notes: - We are using emailpassword recipe - We are tried connection uri and API key for both development and production environment