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

Platform intermittently won't setup. #53

Closed
markxroberts opened this issue Jul 19, 2021 · 1 comment
Closed

Platform intermittently won't setup. #53

markxroberts opened this issue Jul 19, 2021 · 1 comment
Assignees

Comments

@markxroberts
Copy link

Describe the bug
Platform doesn't setup if restart HA too frequently. Once in a 24 hour period seems to be the maximum. Is this a limitation of the platform, or can it be fixed?

Latest working release
Never worked

Debug logs
Unable to prepare setup for platform skodaconnect.device_tracker: Unable to set up component.
20:32:04 – (ERROR) setup.py - message first occurred at 20:32:04 and shows up 41 times
Setup failed for skodaconnect: Integration failed to initialize.
20:30:59 – (ERROR) setup.py
Could not login to Skoda Connect, please check your credentials and verify that the service is working
20:30:59 – (WARNING) skodaconnect (custom integration)
Could not update information: 'serviceInfo'
20:30:59 – (WARNING) /usr/local/lib/python3.9/site-packages/skodaconnect/connection.py
Could not fetch operation list, HTTP status code: 401
20:30:59 – (WARNING) /usr/local/lib/python3.9/site-packages/skodaconnect/connection.py
Received "unauthorized" error while fetching data: 401, message='Unauthorized', url=URL('https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/operationlist/v3/vehicles/XXXXXXXX/users/XXXXXXX?scope=ALL')
20:30:59 – (WARNING) /usr/local/lib/python3.9/site-packages/skodaconnect/connection.py
Setup of skodaconnect is taking over 10 seconds.
20:30:37 – (WARNING) /usr/local/lib/python3.9/asyncio/events.py - message first occurred at 20:30:14 and shows up 2 times

Installation:

  • HA Docker 2021.7.3
@markxroberts markxroberts added the bug Something isn't working label Jul 19, 2021
@Farfar Farfar removed the bug Something isn't working label Jul 26, 2021
@Farfar
Copy link
Collaborator

Farfar commented Jul 26, 2021

There's no issue for me restarting several times per day. However somtimes the backend servers experience poor availability. Especially the token refresh service which might time out and leave you without valid tokens that causes the 401 error.
If you encounter this issue, try to reload the integration from within home assistant. One might need to do this several times when VAG have issues in their system.

@Farfar Farfar closed this as completed Jul 26, 2021
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