codingjoe / codingjoe/ssdp

OSError: [WinError 10022] An invalid argument was supplied

Open
#85 4 comments 0 reactions 1 assignee Claimed by @codingjoe View on GitHub
bug
Dominant language
Python
Stars
51
Forks
13
Avg merge
2d 8h
Merged PRs (30d)
4

Description

python --version
Python 3.11.1
python .\request_msearch.py
C:\Users\User\Desktop\request_msearch.py:41: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
Exception in callback _ProactorDatagramTransport._loop_reading()
handle:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\asyncio\proactor_events.py", line 578, in _loop_reading
self._read_fut = self._loop._proactor.recvfrom(self._sock,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\asyncio\windows_events.py", line 503, in recvfrom
ov.WSARecvFrom(conn.fileno(), nbytes, flags)
OSError: [WinError 10022] An invalid argument was supplied

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\asyncio\proactor_events.py", line 581, in _loop_reading
self._protocol.error_received(exc)
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\ssdp\__init__.py", line 177, in error_received
raise IOError("Unexpected connection error") from exc
OSError: Unexpected connection error

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.