brrrrrrr
brrrrrrr
RRailway
Created by brrrrrrr on 6/19/2023 in #✋|help
Issues getting my python server to deploy
I am running a python async server using fastapi however when I run the server on my computer. It seems to work fine. As soon as I try deploying it I get errors regarding this:
RuntimeError: no running event loop
sys:1: RuntimeWarning: coroutine 'run' was never awaited
Traceback (most recent call last):
File "/app/src/lax.py", line 70, in <module>
asyncio.create_task(run())
File "/root/.nix-profile/lib/python3.11/asyncio/tasks.py", line 371, in create_task
loop = events.get_running_loop()
^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: no running event loop
sys:1: RuntimeWarning: coroutine 'run' was never awaited
RuntimeError: no running event loop
sys:1: RuntimeWarning: coroutine 'run' was never awaited
Traceback (most recent call last):
File "/app/src/lax.py", line 70, in <module>
asyncio.create_task(run())
File "/root/.nix-profile/lib/python3.11/asyncio/tasks.py", line 371, in create_task
loop = events.get_running_loop()
^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: no running event loop
sys:1: RuntimeWarning: coroutine 'run' was never awaited
Does anyone know why this would run on a macbook but not on railway? I am using the same command here to start both servers.
19 replies