skodaconnect / homeassistant-skodaconnect

Skoda Connect - A home assistant plugin to add integration with your car
Apache License 2.0
233 stars 27 forks source link

Cannot connect anymore !!!! #227

Closed mattivisti closed 1 year ago

mattivisti commented 1 year ago

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:

Additional context Add any other context about the problem here.

SrOne commented 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': , '3xxxxxxxxxxxxxxx  } 2023-11-03 22:35:48.551 DEBUG (MainThread) [skodaconnect.connection] Successfully verified refresh token audience and signature 2023-11-03 22:35:48.552 INFO (MainThread) [skodaconnect.connection] Restored token for client "connect", valid until 2024-05-01 17:05:19 2023-11-03 22:35:48.552 DEBUG (MainThread) [skodaconnect.connection] No valid access token for "connect" 2023-11-03 22:35:48.552 DEBUG (MainThread) [skodaconnect.connection] Refreshing tokens for client "connect" 2023-11-03 22:35:48.596 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')

moerpel commented 1 year ago

+1 Login does not work.

mihai-trasca commented 1 year ago

me too

mattivisti commented 1 year ago

lets hope the fix as soon as possible :)

rononline commented 1 year ago

For me it's not working also!

dvx76 commented 1 year ago

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]>
jirkade commented 1 year ago

It is a bit different than #220 because the official app is still working now.

mutzl commented 1 year ago

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')

Hount commented 1 year ago

My integration broke as well. And there was plenty of backend requests remaining. Been broken for approximately 12 hours

Tinus78 commented 1 year ago

My integration broke as well.

maijo366 commented 1 year ago

My integration broke as well.

😒 my too.

Skoda app ios work fine and tronity also. Tronity integration on HA works.

jamiegt10 commented 1 year ago

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

mattivisti commented 1 year ago

I try to add new vehicle in Tronity App and it is not possible .... Might be the same error as in HA 🥲

image

mattivisti commented 1 year ago

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.

image

Simovaara commented 1 year ago

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:"

ronaldt80 commented 1 year ago

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.

roelgillesen commented 1 year ago

The volkswagen integration has the same issue. Perhaps they changed API usage? Btw...this happened after upgrading to HA Core 2023.11.0

MorgothRB commented 1 year ago

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.

Hount commented 1 year ago

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

Hount commented 1 year ago

My official Skoda app stopped working. And my friend with Volkswagen vehicle also reported that his app is throwing connection error too.

Hount commented 1 year ago

Also Audi app cannot connect. Our guess was that cloudflare issues might be related? https://www.cloudflarestatus.com/

dave-castle commented 1 year ago

ŠKODA server might be down. ŠKODA app not connecting.

pawelaugustyn commented 1 year ago

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.

Hount commented 1 year ago

Yes, official app worked additional 12 hours ish. after HA integration stopped working

ronaldt80 commented 1 year ago

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.

jeroenw80 commented 1 year ago

Same error :(

EHVBspotter commented 1 year ago

Yep! same here! after couple tries todo debug but root cause looks like some changes in the API

thorsten commented 1 year ago

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.

Farfar commented 1 year ago

Until the official apps are working again there's no use chasing the cause of this issue.

Hount commented 1 year ago

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. :)

thorsten commented 1 year ago

@Hount I still can't login in the official App

Farfar commented 1 year ago

VW app still not working since this morning.

Hount commented 1 year ago

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 commented 1 year 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"

adaenzer commented 1 year ago

same issue here. myskoda app works fine, though... might also have something to do with ha core update.

ronaldt80 commented 1 year ago

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
thorsten commented 1 year ago

Skoda App, Audi App and TRONITY working again, Skoda Connect on HA still has the same issue @ronaldt80 mentioned.

ronaldt80 commented 1 year ago

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.

Hount commented 1 year ago

If it helps anyone to narrow search, the integration broke (at least on my installation) at 3.10. 17:43:07 UTC

chrisrock1984 commented 1 year ago

same problem for me - cupra was also not working, but works now. skoda app also works but HA integration doesn't

rusitschka commented 1 year ago

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?

mattivisti commented 1 year ago

doesnt work HA skodaconnect

Farfar commented 1 year ago

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.

mattivisti commented 1 year ago
image
Farfar commented 1 year ago
image

See my post above.

ronaldt80 commented 1 year ago

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?

pawelaugustyn commented 1 year ago

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.

ronaldt80 commented 1 year ago

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?

szafran81 commented 1 year ago

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.

flodaho commented 1 year ago

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.