Closed mattivisti closed 1 year ago
Maybe token problem?
Part of debug log:
2023-11-03 22:35:48.482 DEBUG (MainThread) [skodaconnect.connection] Successfully verified refresh token audience and signature
2023-11-03 22:35:48.482 INFO (MainThread) [skodaconnect.connection] Restored token for client "technical", valid until 2024-05-01 17:05:19
2023-11-03 22:35:48.483 DEBUG (MainThread) [skodaconnect.connection] Attempting restore of saved token for client "connect".
2023-11-03 22:35:48.483 DEBUG (MainThread) [skodaconnect.connection] Matching token audience tokenxx-xxxxxedited@apps_vw-dilab_com to client ID for "connect"
2023-11-03 22:35:48.483 DEBUG (MainThread) [skodaconnect.connection] Audience and client ID matches, fetching JWKs
2023-11-03 22:35:48.548 DEBUG (MainThread) [skodaconnect.connection] Token Key ID is 48editedtoken idebca, match from public keys: {'4xxxxxf-xxab-4xxxc-axxx8-0xxxxxxxxxxxxxxca': <cryptography.hazmat.backends.openssl.rsa._RSAPublicKey object at 0x7xxxxxxxx0>, 'fdxxxxkxxxkxxxkf':
+1 Login does not work.
me too
lets hope the fix as soon as possible :)
For me it's not working also!
Looks like another variation of #220 where the API is rate-limiting requests. ☹️
Some debug added locally to print the response from the failed token request:
2023-11-03T21:33:35.729227356Z 2023-11-03 21:33:35.712 DEBUG (MainThread) [skodaconnect.connection] Refreshing tokens for client "connect"
2023-11-03T21:33:35.843808167Z 2023-11-03 21:33:35.841 WARNING (MainThread) [skodaconnect.connection] Something went wrong when refreshing tokens for "connect".
2023-11-03T21:33:35.844426053Z 2023-11-03 21:33:35.842 DEBUG (MainThread) [skodaconnect.connection] Response: <ClientResponse(https://api.connect.skoda-auto.cz/api/v1/authentication/token/refresh?systemId=CONNECT) [429 Too Many Requests]>
It is a bit different than #220 because the official app is still working now.
broken.
2023-11-04 01:07:09.324 WARNING (MainThread) [skodaconnect.connection] Could not refresh tokens: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain', url=URL('https://api.connect.skoda-auto.cz/api/v1/authentication/token/refresh?systemId=CONNECT')
My integration broke as well. And there was plenty of backend requests remaining. Been broken for approximately 12 hours
My integration broke as well.
My integration broke as well.
😒 my too.
Skoda app ios work fine and tronity also. Tronity integration on HA works.
Another one to add to this list of not working on HA since yesterday afternoon, the overnight API reset/Refresh didn't do anything so it looks different from the recent one as my app been ok all the time
I try to add new vehicle in Tronity App and it is not possible .... Might be the same error as in HA 🥲
Also I found one old post and there was that log in "old" myskoda essentials application and it should work. I tried and I got this kind of error also.
I have the same issue too. Yesterday evening the error was "Connect token exchange failed 429". Now I seem to get: "Missing consent for client "technical" scopes:"
Identical issue since yesterday afternoon. I was logged in but the sensors had not been updated for a while so forced the integration to reload after which the errors popped up.
Other third party apps still work - eg tronity, jedlix, stekker.app so dont think its the api calls on the account but perhaps linked to the ip or the way this integration identifies itself? Although skoda website works from the same external ip address.
The volkswagen integration has the same issue. Perhaps they changed API usage? Btw...this happened after upgrading to HA Core 2023.11.0
The volkswagen integration has the same issue. Perhaps they changed API usage? Btw...this happened after upgrading to HA Core 2023.11.0
I didn't update yet and have the same issues.
The volkswagen integration has the same issue. Perhaps they changed API usage? Btw...this happened after upgrading to HA Core 2023.11.0
I had the issue before and after updating core to 2023.11.0
My official Skoda app stopped working. And my friend with Volkswagen vehicle also reported that his app is throwing connection error too.
Also Audi app cannot connect. Our guess was that cloudflare issues might be related? https://www.cloudflarestatus.com/
ŠKODA server might be down. ŠKODA app not connecting.
My observation from yesterday was that the official app was still working while the HA integration didn't. Today, both the official app and HA integration don't work for me.
Yes, official app worked additional 12 hours ish. after HA integration stopped working
That is also my observation. My tronity app refreshed 2 hours ago for the last time. Skoda app worked until last night. HA however was already throwing 429 errors yesterday afternoon.
Same error :(
Yep! same here! after couple tries todo debug but root cause looks like some changes in the API
The whole VW group authentication and identity infrastructure seems to be down. I can't connect with my Skoda App, my Audi App, my HA and TRONITY.
Until the official apps are working again there's no use chasing the cause of this issue.
Official app started working some time within the last hour. HA integration does not work yet.
Edit: official app stopped working right after this. So back to "nothing works" -situation. :)
@Hount I still can't login in the official App
VW app still not working since this morning.
2023-11-04 13:49:43.647 WARNING (MainThread) [skodaconnect.connection] Could not refresh tokens: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain', url=URL('https://api.connect.skoda-auto.cz/api/v1/authentication/token/refresh?systemId=CONNECT')
UTC+2, aka 5 minutes ago.
@Hount I still can't login in the official App
Yeah, mine neither any more. It worked briefly for few minutes and gave me up-to-date information so it was not cached old data etc. But now MySkoda Essentials is again back to "The operation was unsuccessful"
same issue here. myskoda app works fine, though... might also have something to do with ha core update.
Until the official apps are working again there's no use chasing the cause of this issue.
Can confirm my skoda app is working. Also tronity is updating the status again. Integration though throws the same error as yesterday:
This error originated from a custom integration.
Logger: custom_components.skodaconnect.config_flow
Source: custom_components/skodaconnect/config_flow.py:103
Integration: Skoda Connect (documentation, issues)
First occurred: 17:57:09 (1 occurrences)
Last logged: 17:57:09
Login failed with error: Token exchange failed. Request status: 429
Skoda App, Audi App and TRONITY working again, Skoda Connect on HA still has the same issue @ronaldt80 mentioned.
I need the soc for my smart charging set up which controls the wallbox to benefit from cheap hours. Work around which may be useful for others is to install the tronity integration.
No control over the charging itself but still some insight.
If it helps anyone to narrow search, the integration broke (at least on my installation) at 3.10. 17:43:07 UTC
same problem for me - cupra was also not working, but works now. skoda app also works but HA integration doesn't
429 means "Too many request". https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429
This HTTP error code is usually used to tell the client to slow down their requests.
I'm polling every 5 minutes. Is that too much?
doesnt work HA skodaconnect
Seems most are being throttled at the token endpoint now as well. I suggest everyone having issues to increase poll interval greatly and disable the integration until tomorrow and then try again.
See my post above.
Seems most are being throttled at the token endpoint now as well. I suggest everyone having issues to increase poll interval greatly and disable the integration until tomorrow and then try again.
Will wait another day. But where can i change the polling seeing my integration is no longer set up?
Will wait another day. But where can i change the polling seeing my integration is no longer set up?
You can do that by reconfiguring the device entry in the Skoda Connect integration settings. The first field in the HA device configuration relates to the polling interval.
Will wait another day. But where can i change the polling seeing my integration is no longer set up?
You can do that by reconfiguring the device entry in the Skoda Connect integration settings. The first field in the HA device configuration relates to the polling interval.
I know :) - but in my case i removed the integration yesterday hoping a fresh setup would solve the problem. Tried to reinstall just now again, but before I can change the polling settings you refer to I need to log on which results in the 429 error - perhaps an idea to liaise with the tronity team? They seem to have fixed the issues?
Good to see I'm not alone. Bad to see that VW is trying once again to block our access to the data that we pay for.
Will wait another day. But where can i change the polling seeing my integration is no longer set up?
You can do that by reconfiguring the device entry in the Skoda Connect integration settings. The first field in the HA device configuration relates to the polling interval.
I know :) - but in my case i removed the integration yesterday hoping a fresh setup would solve the problem. Tried to reinstall just now again, but before I can change the polling settings you refer to I need to log on which results in the 429 error - perhaps an idea to liaise with the tronity team? They seem to have fixed the issues?
Same here. I got my Enyaq yesterday evening, set the app up running and then tried to add the data to HA. Unfortunately I only see the screen that mattivisti showed in his screenshot. App an web service are running fine.
Describe the bug A clear and concise description of what the bug is. No valid tokens for client "connect"
if I use my accounts skoda-connect.com webpage it works fine but this doesnt allow me to connect.
Could not login to Skoda Connect, please check your credentials and verify that the service is working
**Is this working in MySkoda app?*** Logout and login in the MySkoda app, preferably on Android. Make sure that you have the latest app updates, sometimes there's new consent needed that will only show in latest app version.
Debug logs If applicable, add debug logs. See README on how to enable debug logs with response debugging.
This error originated from a custom integration. Logger: custom_components.skodaconnect.config_flow Source: custom_components/skodaconnect/config_flow.py:103 Integration: Skoda Connect (documentation, issues) First occurred: 22:00:07 (8 occurrences) Last logged: 22:44:06
Login failed with error: Invalid password Login failed with error: Account is locked for another 4 seconds Login failed with error: Token exchange failed. Request status: 429
This error originated from a custom integration. Logger: skodaconnect.connection Source: custom_components/skodaconnect/config_flow.py:101 Integration: Skoda Connect (documentation, issues) First occurred: 22:00:07 (8 occurrences) Last logged: 22:44:06
Invalid password Account is locked for another 4 seconds Token exchange failed. Request status: 429
Installation:
Home Assistant variant: [e.g. Hass OS, Docker, Core, Supervised] home assistant DOCKER version Home Assistant Core 2023.11.0 Frontend 20231030.1
Python version [e.g. 3.7, 3.8] python3 --version Python 3.10.12
Python library versions ["python3 -m pip list"] python3 -m pip list Package Version
aiohttp 3.8.4 aiosignal 1.3.1 apturl 0.5.2 async-timeout 4.0.2 attrs 22.2.0 bcrypt 3.2.0 beautifulsoup4 4.11.2 blinker 1.4 Brlapi 0.8.3 certifi 2020.6.20 chardet 4.0.0 charset-normalizer 3.0.1 click 8.0.3 colorama 0.4.4 command-not-found 0.3 cryptography 3.4.8 cupshelpers 1.0 dbus-python 1.2.18 defer 1.0.6 dirigera 0.1.10 distlib 0.3.4 distro 1.7.0 distro-info 1.1+ubuntu0.1 duplicity 0.8.21 fasteners 0.14.1 filelock 3.6.0 Flask 2.2.3 frozenlist 1.3.3 future 0.18.2 httplib2 0.20.2 idna 3.3 importlib-metadata 4.6.4 intelhex 2.3.0 itsdangerous 2.1.2 jeepney 0.7.1 Jinja2 3.1.2 keyring 23.5.0 language-selector 0.1 launchpadlib 1.10.16 lazr.restfulclient 0.14.4 lazr.uri 1.0.6 lockfile 0.12.2 louis 3.20.0 lxml 4.9.2 macaroonbakery 1.3.1 Mako 1.1.3 MarkupSafe 2.1.2 monotonic 1.6 more-itertools 8.10.0 multidict 6.0.4 netifaces 0.11.0 oauthlib 3.2.0 olefile 0.46 paramiko 2.9.3 pexpect 4.8.0 Pillow 9.0.1 pip 23.3.1 platformdirs 2.5.1 protobuf 3.12.4 ptyprocess 0.7.0 pycairo 1.20.1 pycups 2.0.1 PyGObject 3.42.1 PyJWT 2.3.0 pymacaroons 0.13.0 PyNaCl 1.5.0 pyparsing 2.4.7 pyRFC3339 1.1 pyserial 3.5 python-apt 2.4.0+ubuntu2 python-dateutil 2.8.1 python-debian 0.1.43+ubuntu1.1 pytz 2022.1 pyxdg 0.27 PyYAML 5.4.1 reportlab 3.6.8 requests 2.25.1 SecretStorage 3.3.1 setuptools 59.6.0 six 1.16.0 skodaconnect 1.3.4 soupsieve 2.4 ssh-import-id 5.11 systemd-python 234 ubuntu-advantage-tools 8001 ubuntu-drivers-common 0.0.0 ufw 0.36.1 unattended-upgrades 0.1 urllib3 1.26.5 usb-creator 0.3.7 virtualenv 20.13.0+ds wadllib 1.3.6 websocket-client 1.6.3 Werkzeug 2.2.3 wheel 0.37.1 xdg 5 xkit 0.0.0 xmltodict 0.13.0 yarl 1.8.2 zipp 1.0.0
Additional context Add any other context about the problem here.