Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asyncio Queue Bug #244

Open
rbrisita opened this issue Apr 16, 2024 · 0 comments
Open

Asyncio Queue Bug #244

rbrisita opened this issue Apr 16, 2024 · 0 comments

Comments

@rbrisita
Copy link
Contributor

Describe the bug
Asyncio queues are created outside of the current event loop which results in this error:

Task <Task pending name='Task-16' coro=<send_messages() running at ~/01/software/source/server/server.py:199>
  cb=[gather.<locals>._done_callback() at /usr/lib/python3.9/asyncio/tasks.py:764]>
  got Future <Future pending> attached to a different loop

This stems from 01/software/source/server/server.py::websocket_endpoint function and the send_task statement.

To Reproduce
Steps to reproduce the behavior:

  1. poetry run 01 --local

Expected behavior
Request and response when interacting with 01OS.

Desktop (please complete the following information):

  • OS: Debian 11
  • Python Version 3.9.19 and 3.11.9

Additional context
Other PRs were merged and an exception printed out to allow this error to be seen. PR to resolve this will follow.

This was referenced Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant