core
core copied to clipboard
Denon integration continually logs denonavr.exceptions.AvrInvalidResponseError: XMLParseError
The problem
I was able to successfully add my Denon X4700H to Home Assistant. However, every couple of seconds the below is being dumped to the home-assistant.log. Disabling the device stops the log messages.
The log messages persist whether the Denon device is turn on or off.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/asyncstdlib/_lrucache.py", line 408, in __call__
result = self.__cache[key]
KeyError: <asyncstdlib._lrucache.CallKey object at 0x9e549808>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/xml/etree/ElementTree.py", line 1715, in feed
self.parser.Parse(data, False)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/denonavr/api.py", line 164, in async_post_appcommand
xml_root = fromstring(res.text)
File "/usr/local/lib/python3.10/site-packages/defusedxml/common.py", line 126, in fromstring
parser.feed(text)
File "/usr/local/lib/python3.10/xml/etree/ElementTree.py", line 1717, in feed
self._raiseerror(v)
File "/usr/local/lib/python3.10/xml/etree/ElementTree.py", line 1624, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 23, column 8
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/denonavr/media_player.py", line 157, in wrapper
return await func(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/denonavr/media_player.py", line 250, in async_update
await self._receiver.async_update()
File "/usr/local/lib/python3.10/site-packages/denonavr/denonavr.py", line 170, in async_update
await self._device.async_update(global_update=True, cache_id=cache_id)
File "/usr/local/lib/python3.10/site-packages/denonavr/foundation.py", line 127, in async_update
await self.async_update_power(
File "/usr/local/lib/python3.10/site-packages/denonavr/foundation.py", line 356, in async_update_power
await self.async_update_power_appcommand(
File "/usr/local/lib/python3.10/site-packages/denonavr/foundation.py", line 375, in async_update_power_appcommand
xml = await self.api.async_get_global_appcommand(
File "/usr/local/lib/python3.10/site-packages/denonavr/api.py", line 209, in async_get_global_appcommand
res = await self.async_post_appcommand(url, tags, cache_id=cache_id)
File "/usr/local/lib/python3.10/site-packages/denonavr/decorators.py", line 96, in wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/asyncstdlib/_lrucache.py", line 411, in __call__
result = await self.__wrapped__(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/denonavr/decorators.py", line 78, in wrapper
raise AvrInvalidResponseError(
denonavr.exceptions.AvrInvalidResponseError: XMLParseError: not well-formed (invalid token): line 23, column 8
What version of Home Assistant Core has the issue?
core-2022.8.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Denon AVR Network Receivers
Link to integration documentation on our website
https://www.home-assistant.io/integrations/denonavr
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
denonavr documentation denonavr source (message by IssueLinks)
Hey there @ol-iver, @starkillerog, mind taking a look at this issue as it has been labeled with an integration (denonavr
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
I am still having this issue