CJNE / ha-porscheconnect

Porsche Connect custom component for Home Assistant
MIT License
29 stars 12 forks source link

Unexpected error fetching porscheconnect #67

Closed barto64 closed 2 years ago

barto64 commented 2 years ago

Hello,

A of 11:41 CET today I am getting the below error every 5 minutes (on each pooling) and also all Prosche connect related entities appear as unavailable.

2022-02-04 11:44:05 ERROR (MainThread) [custom_components.porscheconnect] Unexpected error fetching porscheconnect data: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh self.data = await self._async_update_data() File "/config/custom_components/porscheconnect/init.py", line 218, in _async_update_data vdata = await self._update_data_for_vehicle(vehicle) File "/config/custom_components/porscheconnect/init.py", line 145, in _update_data_for_vehicle **await self.controller.getStoredOverview(vin), File "/usr/local/lib/python3.9/site-packages/pyporscheconnectapi/client.py", line 418, in getStoredOverview data = await self._connection.get( File "/usr/local/lib/python3.9/site-packages/pyporscheconnectapi/connection.py", line 183, in get return await resp.json() File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1119, in json return loads(stripped.decode(encoding)) File "/usr/local/lib/python3.9/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

barto64 commented 2 years ago

Please discard it, apologies, it looks like after reboot it is working fine again.

barto64 commented 2 years ago

Re-opening the issue. After the reboot made because a new HA version it worked, but not too late afterwoards started to happen again every 5 minutes. Something may have changed at HA or Porsche side. Thanks

CJNE commented 2 years ago

I'm not seeing this problem, is it possible this was a temporary error on their backend or do you still have this?

barto64 commented 2 years ago

Thanks for answering. No, i am not longer seeing it, it may has been as you said a temporary thing.

barto64 commented 2 years ago

No more errors happened