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

"RuntimeError: Event loop is closed" #7

Open
enchance opened this issue Jun 27, 2022 · 1 comment
Open

"RuntimeError: Event loop is closed" #7

enchance opened this issue Jun 27, 2022 · 1 comment

Comments

@enchance
Copy link

enchance commented Jun 27, 2022

This is a great package you got here. My tests run as expected but at the end I'm getting the following error:

Fatal error on SSL transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x7efcf5b9d820>
transport: <_SelectorSocketTransport closing fd=10>
Traceback (most recent call last):
  File "/home/enchance/.pyenv/versions/3.9.10/lib/python3.9/asyncio/selector_events.py", line 918, in write
    n = self._sock.send(data)
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/enchance/.pyenv/versions/3.9.10/lib/python3.9/asyncio/sslproto.py", line 684, in _process_write_backlog
    self._transport.write(chunk)
  File "/home/enchance/.pyenv/versions/3.9.10/lib/python3.9/asyncio/selector_events.py", line 924, in write
    self._fatal_error(exc, 'Fatal write error on socket transport')
  File "/home/enchance/.pyenv/versions/3.9.10/lib/python3.9/asyncio/selector_events.py", line 719, in _fatal_error
    self._force_close(exc)
  File "/home/enchance/.pyenv/versions/3.9.10/lib/python3.9/asyncio/selector_events.py", line 731, in _force_close
    self._loop.call_soon(self._call_connection_lost, exc)
  File "/home/enchance/.pyenv/versions/3.9.10/lib/python3.9/asyncio/base_events.py", line 746, in call_soon
    self._check_closed()
  File "/home/enchance/.pyenv/versions/3.9.10/lib/python3.9/asyncio/base_events.py", line 510, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

Did I forget to do something?

@caerulescens
Copy link

caerulescens commented Nov 4, 2023

did you read this?

Make sure you join the larger discussion here.

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

2 participants