home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.07k stars 31.09k forks source link

volvooncall integration broken in core-2021.11.4 #60032

Closed hgregorian closed 3 years ago

hgregorian commented 3 years ago

The problem

Volvo On Call integration has stopped functioning since core-2021.11.4. Downgrade to core-2021.11.3 resolves issues.

What version of Home Assistant Core has the issue?

core-2021.11.4

What was the last working version of Home Assistant Core?

core-2021.11.3

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

volvooncall

Link to integration documentation on our website

https://www.home-assistant.io/integrations/volvooncall/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.setup
Source: components/volvooncall/__init__.py:167
First occurred: 9:29:08 AM (1 occurrences)
Last logged: 9:29:08 AM

Error during setup of component volvooncall
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 254, in _async_setup_component
    result = await task
  File "/usr/src/homeassistant/homeassistant/components/volvooncall/__init__.py", line 182, in async_setup
    return await update(utcnow())
  File "/usr/src/homeassistant/homeassistant/components/volvooncall/__init__.py", line 167, in update
    if not await connection.update(journal=True):
  File "/usr/local/lib/python3.9/site-packages/volvooncall/volvooncall.py", line 114, in update
    await vehicle.update(journal=journal)
  File "/usr/local/lib/python3.9/site-packages/volvooncall/volvooncall.py", line 155, in update
    await self._connection.update_vehicle(self, journal)
  File "/usr/local/lib/python3.9/site-packages/volvooncall/volvooncall.py", line 125, in update_vehicle
    self._state[url].update(await self.get("trips", rel=url))
  File "/usr/local/lib/python3.9/site-packages/volvooncall/volvooncall.py", line 91, in get
    return await self._request(METH_GET, self._make_url(url, rel))
  File "/usr/local/lib/python3.9/site-packages/volvooncall/volvooncall.py", line 77, in _request
    res = await response.json(loads=json_loads)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1092, in json
    await self.read()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1032, in read
    self._body = await self.content.read()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 370, in read
    block = await self.readany()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 392, in readany
    await self._wait("readany")
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 306, in _wait
    await waiter
aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed

Additional information

No response

probot-home-assistant[bot] commented 3 years ago

volvooncall documentation volvooncall source (message by IssueLinks)

hgregorian commented 3 years ago

Updated to core-2021.11.5…issue persists. Rolled back to core-2021.11.3, volvooncall integration is functional again.

g3r0nim00 commented 3 years ago

Hi,

I'm running core-2021.11.5 without any issues...

fyi: I used to have issues in the past with Volvo On Call, Velux and other integrations which have been solved once I switched my raspberry PI 3 with a newer raspberry PI 4...

hgregorian commented 3 years ago

I don’t understand what’s going on. I upgraded again to core-2021.11.5 yesterday and experienced no issues. Restarted core several times and only once did this issue come up, however a subsequent restart resolved the issue. All without making any configuration changes. Very confused…but I’m going to go ahead and close this as I cannot reliably reproduce the issue any longer.

g3r0nim00 commented 3 years ago

Not going to advise you to buy new hardware, but what you describe (restarting it a 'couple' of times and it works in the 'affected' core-release) matches my previous experience... I had the same issues with volvo on call & velux a while ago (before I upgraded my old PI hardware to new PI hardware).

hgregorian commented 3 years ago

Yah, it’s not the HW 😄 (I know what you mean with the pi’s and SD card corruption which is one of the reasons I don’t run HA on a pi anymore) I’m running on a relatively new NUC. It seems like a race condition.