Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
aiohttp strangeness
[2020-11-09 10:49:12] ERROR:aiohttp.server:Error handling request
Traceback (most recent call last):
File "C:\Users\shaun\ledfx-3.8\lib\site-packages\aiohttp\web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "C:\Users\shaun\ledfx-3.8\lib\site-packages\aiohttp\web_app.py", line 499, in _handle
resp = await handler(request)
File "c:\users\shaun\ledfx-3.8\ledfx\ledfx\api\__init__.py", line 26, in handler
return await method(**{arg_name: available_args[arg_name] for arg_name in wanted_args})
File "c:\users\shaun\ledfx-3.8\ledfx\ledfx\api\websocket.py", line 34, in get
return await WebsocketConnection(self._ledfx).handle(request)
File "c:\users\shaun\ledfx-3.8\ledfx\ledfx\api\websocket.py", line 157, in handle
await self._sender_task
File "c:\users\shaun\ledfx-3.8\ledfx\ledfx\api\websocket.py", line 98, in _sender
await self._socket.send_json(message, dumps=json.dumps)
File "C:\Users\shaun\ledfx-3.8\lib\site-packages\aiohttp\web_ws.py", line 316, in send_json
await self.send_str(dumps(data), compress=compress)
File "C:\Users\shaun\ledfx-3.8\lib\site-packages\aiohttp\web_ws.py", line 300, in send_str
await self._writer.send(data, binary=False, compress=compress)
File "C:\Users\shaun\ledfx-3.8\lib\site-packages\aiohttp\http_websocket.py", line 687, in send
await self._send_frame(message, WSMsgType.TEXT, compress)
File "C:\Users\shaun\ledfx-3.8\lib\site-packages\aiohttp\http_websocket.py", line 598, in _send_frame
raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport
Stopping LedFx.
(ledfx-3.8) PS C:\Users\shaun\ledfx-3.8\LedFx> python
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import aiohttp
>>> print(aiohttp.__version__)
3.7.2
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.