Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error fetching porscheconnect #67

Closed
barto64 opened this issue Feb 4, 2022 · 5 comments
Closed

Unexpected error fetching porscheconnect #67

barto64 opened this issue Feb 4, 2022 · 5 comments

Comments

@barto64
Copy link

barto64 commented Feb 4, 2022

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
Copy link
Author

barto64 commented Feb 4, 2022

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

@barto64 barto64 closed this as completed Feb 4, 2022
@barto64
Copy link
Author

barto64 commented Feb 4, 2022

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

@barto64 barto64 reopened this Feb 4, 2022
@CJNE
Copy link
Owner

CJNE commented Feb 7, 2022

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

@barto64
Copy link
Author

barto64 commented Feb 7, 2022

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

@barto64 barto64 closed this as completed Feb 7, 2022
@barto64
Copy link
Author

barto64 commented Feb 7, 2022

No more errors happened

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants