Every time I cancel casted media to my Lenovo Smart Clock 2, after stopping the media the clock follows up with a:
Sorry, something went wrong. When you are ready, give it another try
It doesn’t say anything else and otherwise works fine (and is able to accept further casted media). Interestingly this happens regardless of who is casting the media (HA vs casting from phone vs starting a stream by voice).
What’s particularly strange is that that I see an exception in the HA logs each time this happens:
Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1208, in _sendfile_fallback
await proto.drain()
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 231, in drain
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/homeassistant/homeassistant/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 512, in start
resp, reset = await task
File "/home/homeassistant/homeassistant/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 458, in _handle_request
reset = await self.finish_response(request, resp, start_time)
File "/home/homeassistant/homeassistant/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 611, in finish_response
await prepare_meth(request)
File "/home/homeassistant/homeassistant/lib/python3.10/site-packages/aiohttp/web_fileresponse.py", line 286, in prepare
return await self._sendfile(request, fobj, offset, count)
File "/home/homeassistant/homeassistant/lib/python3.10/site-packages/aiohttp/web_fileresponse.py", line 99, in _sendfile
await loop.sendfile(transport, fobj, offset, count)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1184, in sendfile
return await self._sendfile_fallback(transport, file,
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1214, in _sendfile_fallback
await proto.restore()
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 268, in restore
self._transport.resume_reading()
File "/usr/local/lib/python3.10/asyncio/sslproto.py", line 343, in resume_reading
self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'
I also think this is HA related, as I’ve been trying to get the Google Assistant integration up and running before this behaviour began, although it may be indirectly related (eg after establishing external access).
Any ideas on how to diagnose this?