solve this issuee

botdepoyTRIAL

2 months ago

Starting Container

2025-02-25 02:40:27,244 - INFO - Bot is running…

/root/.nix-profile/lib/python3.12/asyncio/base_[events.py](events.py):687: RuntimeWarning: coroutine 'Application.shutdown' was never awaited

return future.result()

RuntimeWarning: Enable tracemalloc to get the object allocation traceback

/root/.nix-profile/lib/python3.12/asyncio/base_[events.py](events.py):687: RuntimeWarning: coroutine 'Application.initialize' was never awaited

return future.result()

RuntimeWarning: Enable tracemalloc to get the object allocation traceback

Traceback (most recent call last):

File "/app/bot.py", line 44, in

loop = asyncio.get_running_loop()

       ^^^^^^^^^^^^^^^^^^^^^^^^^^

RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/app/bot.py", line 47, in

[asyncio.run](asyncio.run)(run_bot())  # If no event loop exists, create one

^^^^^^^^^^^^^^^^^^^^^^

File "/root/.nix-profile/lib/python3.12/asyncio/runners.py", line 194, in run

return [runner.run](runner.run)(main)

       ^^^^^^^^^^^^^^^^

File "/root/.nix-profile/lib/python3.12/asyncio/runners.py", line 118, in run

return self._[loop.run](loop.run)_until_complete(task)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/.nix-profile/lib/python3.12/asyncio/baseevents.py", line 687, in rununtil_complete

return future.result()

       ^^^^^^^^^^^^^^^

File "/app/bot.py", line 40, in run_bot

await [app.run](app.run)_polling()

      ^^^^^^^^^^^^^^^^^

File "/opt/venv/lib/python3.12/site-packages/telegram/ext/application.py", line 694, in runpolling

return self.__run(

       ^^^^^^^^^^^

File "/opt/venv/lib/python3.12/site-packages/telegram/ext/_application.py", line 895, in __run

loop.close()

File "/root/.nix-profile/lib/python3.12/asyncio/unix_events.py", line 68, in close

super().close()

File "/root/.nix-profile/lib/python3.12/asyncio/selector_events.py", line 101, in close

raise RuntimeError("Cannot close a running event loop")

RuntimeError: Cannot close a running event loop

2025-02-25 02:40:29,295 - INFO - Bot is running…

/root/.nix-profile/lib/python3.12/asyncio/base_[events.py](events.py):687: RuntimeWarning: coroutine 'Application.shutdown' was never awaited

return future.result()

RuntimeWarning: Enable tracemalloc to get the object allocation traceback

/root/.nix-profile/lib/python3.12/asyncio/base_[events.py](events.py):687: RuntimeWarning: coroutine 'Application.initialize' was never awaited

return future.result()

RuntimeWarning: Enable tracemalloc to get the object allocation traceback

Traceback (most recent call last):

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

Closed

1 Replies

2 months ago

Hey!

This is an issue with your project / application. Unfortunately, we're unable to offer first-party support for issues unrelated to the Railway product or platform.

Other communities such as Stackoverflow might be able to help you out further.

Best,
Brody


Status changed to Closed brody 2 months ago