Denonavr not working since 2021.6.4

Denonavr is no longer working for me with 2021.6.4

2021-06-13 00:45:58 DEBUG (MainThread) [denonavr.decorators] Network error exception on request <Request('GET', 'http://192.168.42.191/goform/Deviceinfo.xml')>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 200, in __aiter__
async for part in self._httpcore_stream:
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/connection_pool.py", line 57, in __aiter__
async for chunk in self.stream:
File "/usr/local/lib/python3.8/site-packages/httpcore/_bytestreams.py", line 91, in __aiter__
async for chunk in self._aiterator:
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/http11.py", line 208, in _receive_response_data
event = await self._receive_event(timeout)
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/http11.py", line 225, in _receive_event
data = await self.socket.read(self.READ_NUM_BYTES, timeout)
File "/usr/local/lib/python3.8/site-packages/httpcore/_backends/anyio.py", line 65, in read
raise ReadError("Server disconnected while attempting read") from None
httpcore.ReadError: Server disconnected while attempting read
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/denonavr/api.py", line 85, in async_get
res = await client.get(endpoint, timeout=self.timeout)
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1662, in get
return await self.request(
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1426, in request
response = await self.send(
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1529, in send
raise exc
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1520, in send
await response.aread()
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1562, in aread
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1562, in <listcomp>
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1578, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1632, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 127, in __aiter__
async for chunk in self._stream:
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 201, in __aiter__
yield part
File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadError: Server disconnected while attempting read
2021-06-13 00:45:58 DEBUG (MainThread) [denonavr.decorators] Exception NetworkError: Server disconnected while attempting read raised, clearing cache
2021-06-13 00:45:58 DEBUG (MainThread) [denonavr.foundation] Connection error on port 80 when identifying receiver
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 200, in __aiter__
async for part in self._httpcore_stream:
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/connection_pool.py", line 57, in __aiter__
async for chunk in self.stream:
File "/usr/local/lib/python3.8/site-packages/httpcore/_bytestreams.py", line 91, in __aiter__
async for chunk in self._aiterator:
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/http11.py", line 208, in _receive_response_data
event = await self._receive_event(timeout)
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/http11.py", line 225, in _receive_event
data = await self.socket.read(self.READ_NUM_BYTES, timeout)
File "/usr/local/lib/python3.8/site-packages/httpcore/_backends/anyio.py", line 65, in read
raise ReadError("Server disconnected while attempting read") from None
httpcore.ReadError: Server disconnected while attempting read
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/denonavr/api.py", line 85, in async_get
res = await client.get(endpoint, timeout=self.timeout)
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1662, in get
return await self.request(
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1426, in request
response = await self.send(
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1529, in send
raise exc
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1520, in send
await response.aread()
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1562, in aread
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1562, in <listcomp>
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1578, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1632, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 127, in __aiter__
async for chunk in self._stream:
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 201, in __aiter__
yield part
File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadError: Server disconnected while attempting read
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/denonavr/foundation.py", line 132, in async_identify_receiver
xml = await self.api.async_get_xml(
File "/usr/local/lib/python3.8/site-packages/denonavr/decorators.py", line 96, in wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/asyncstdlib/_lrucache.py", line 288, in wrapper
result = await function(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/denonavr/api.py", line 139, in async_get_xml
res = await self.async_get(request)
File "/usr/local/lib/python3.8/site-packages/denonavr/decorators.py", line 64, in wrapper
raise AvrNetworkError(
denonavr.exceptions.AvrNetworkError: NetworkError: Server disconnected while attempting read
2021-06-13 00:46:13 DEBUG (MainThread) [denonavr.decorators] HTTP timeout exception on request <Request('GET', 'http://192.168.42.191:8080/goform/Deviceinfo.xml')>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 200, in __aiter__
async for part in self._httpcore_stream:
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/connection_pool.py", line 57, in __aiter__
async for chunk in self.stream:
File "/usr/local/lib/python3.8/site-packages/httpcore/_bytestreams.py", line 91, in __aiter__
async for chunk in self._aiterator:
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/http11.py", line 208, in _receive_response_data
event = await self._receive_event(timeout)
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/http11.py", line 225, in _receive_event
data = await self.socket.read(self.READ_NUM_BYTES, timeout)
File "/usr/local/lib/python3.8/site-packages/httpcore/_backends/anyio.py", line 61, in read
raise ReadTimeout from None
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/denonavr/api.py", line 85, in async_get
res = await client.get(endpoint, timeout=self.timeout)
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1662, in get
return await self.request(
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1426, in request
response = await self.send(
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1529, in send
raise exc
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1520, in send
await response.aread()
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1562, in aread
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1562, in <listcomp>
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1578, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1632, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 127, in __aiter__
async for chunk in self._stream:
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 201, in __aiter__
yield part
File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
2021-06-13 00:46:13 DEBUG (MainThread) [denonavr.decorators] Exception TimeoutException: raised, clearing cache
2021-06-13 00:46:13 DEBUG (MainThread) [denonavr.foundation] Connection error on port 8080 when identifying receiver
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 200, in __aiter__
async for part in self._httpcore_stream:
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/connection_pool.py", line 57, in __aiter__
async for chunk in self.stream:
File "/usr/local/lib/python3.8/site-packages/httpcore/_bytestreams.py", line 91, in __aiter__
async for chunk in self._aiterator:
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/http11.py", line 208, in _receive_response_data
event = await self._receive_event(timeout)
File "/usr/local/lib/python3.8/site-packages/httpcore/_async/http11.py", line 225, in _receive_event
data = await self.socket.read(self.READ_NUM_BYTES, timeout)
File "/usr/local/lib/python3.8/site-packages/httpcore/_backends/anyio.py", line 61, in read
raise ReadTimeout from None
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/denonavr/api.py", line 85, in async_get
res = await client.get(endpoint, timeout=self.timeout)
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1662, in get
return await self.request(
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1426, in request
response = await self.send(
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1529, in send
raise exc
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1520, in send
await response.aread()
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1562, in aread
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1562, in <listcomp>
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1578, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/usr/local/lib/python3.8/site-packages/httpx/_models.py", line 1632, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 127, in __aiter__
async for chunk in self._stream:
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 201, in __aiter__
yield part
File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/denonavr/foundation.py", line 132, in async_identify_receiver
xml = await self.api.async_get_xml(
File "/usr/local/lib/python3.8/site-packages/denonavr/decorators.py", line 96, in wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/asyncstdlib/_lrucache.py", line 288, in wrapper
result = await function(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/denonavr/api.py", line 139, in async_get_xml
res = await self.async_get(request)
File "/usr/local/lib/python3.8/site-packages/denonavr/decorators.py", line 58, in wrapper
raise AvrTimoutError(
denonavr.exceptions.AvrTimoutError: TimeoutException:

Was working fine with 2021.5 and I think also with 2021.6.2.

I can curl the URL in the error from the console (on the machine running Homeassistant" and it works without any problems.

Restarted the receiver multiple times.
Restarted Homeassistant multiple times.
Not using other apps (but tried URL from differnt PC and also works fine)

Any ideas?

Not working for me either after the update

Me too. All 3 Denon’s I have configured are broken after the 2021.6.4 update.

Rolled back to 2021.6.3 and everything ok.

Lost all three Denons here as well. Back to 6.3 fixed this.

Same for me havent rolled back yet. Found this in my log.

Logger: denonavr.ssdp
Source: /usr/local/lib/python3.8/site-packages/denonavr/ssdp.py:214
First occurred: 7:07:07 PM (1 occurrences)
Last logged: 7:07:07 PM

Error occurred during evaluation of SCPD XML from URI http://192.168.0.191:9080: not well-formed (invalid token): line 1, column 6

Glad, that I’m not alone, broken for me too.

Logger: homeassistant.config_entries
Source: config_entries.py:324
First occurred: 11:23:53 (1 occurrences)
Last logged: 11:23:53

Config entry ‘Denon AVR-X1400H’ for denonavr integration not ready yet: NetworkError: Server disconnected while attempting read; Retrying in background

Oh glad I saw this before I upgraded. But it looks like a workaround/fix is ready for a 2021.6.5 release, if I understand this pr correctly: Add httpcore with version 0.13.3 by ludeeus · Pull Request #51799 · home-assistant/core · GitHub

1 Like

First time I’m saved by having a recent snapshot, go to love this community for patching this issue in no-time!

You can also just downgrade from the console

ha core update --version=2021.6.3

1 Like

I can confirm. Denon AVR Integration not working. I tried to restart receiver. After deleting integration and adding again, integration config reports it cant connect to receiver.
Rollback to 2021.6.3 and everithing works again.

d.

Same here. Reverting to 2021.6.3 did the trick…

Same over here. After rollback to 2021.6.3 problem solved. Thanks to Bratu_Stefan

Same for me.
core-2021.6.4

Me, too.

2021.6.4 supervised

Roll back to 2021.6.3 or wait until 2021.6.5.

3 Likes

I can confirm that this got fixed for me when I upgraded to 2021.6.5.

1 Like

Yes.
Worked a treat going to 2021.6.5.

Thank you!

likewise. working now. anyone notice that the startup for the integration is significantly longer than other integrations? Most integrations are 0-3 seconds, denon is 30s!