You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering a RuntimeError when running the gRPC server in my Django project. The error message indicates that a Future object is being awaited on a different event loop than the one it was created on.
What I Did
GRPCSERVER setting in settings.py has 'async': True.
Run the gRPC server using the command: python manage.py grpcserver
Observe the RuntimeError in the console output.
RuntimeError: Task <Task pending name='Task-1' coro=<Command._serve_async.<locals>._main_routine() running at /{path}/lib/python3.12/site-packages/django_grpc/management/commands/grpcserver.py:58> cb=[_run_until_complete_cb() at /{path}/.pyenv/versions/3.12.3/lib/python3.12/asyncio/base_events.py:182]> got Future <Future pending> attached to a different loop
The text was updated successfully, but these errors were encountered:
Description
I am encountering a RuntimeError when running the gRPC server in my Django project. The error message indicates that a Future object is being awaited on a different event loop than the one it was created on.
What I Did
python manage.py grpcserver
The text was updated successfully, but these errors were encountered: