-
Notifications
You must be signed in to change notification settings - Fork 36
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
Failed to fetch VW-Group API tokens, API token request returned with status code 403 #208
Comments
Just gonna second this. I am also experiencing the same issue. ☝️ |
Same story in Home Assistant.
|
Following... |
This might be interesting: |
I've tried running the example script on the home-page with #209 and placed a breakpoint on line 382
|
Did some research on this, and seems like the hardcoded client id
weconnect has an interesting approach generating a new client for each session, maybe that's something we should implement, too. Proof:
|
I can confirm that the new client ID also works for me. |
Hi all, I changed the XCLIENT_ID to "c8fcb3bf-22d3-44b0-b6ce-30eae0a4986f". With the integration "Volkswagen WeConnect" I still get the below error: [volkswagencarnet.vw_connection] Failed to fetch VW-Group API tokens, API token request returned with status code 403 |
You need to clean __pycache and if you use Home Assistant you need to restart it. |
Test with the new 4.4.65 release! |
Actually it works now... I had to change the XCLIENT_ID under ".homeassistant\deps\Python311\site-packages\volkswagencarnet\vw_const.py" path... and not the one under Python folder |
4.4.65 works like a charm. Thanks so much for the prompt fix! |
For all who had the 403 error, please check you have the right media! This version, 4.4.65 works perfect again! Thank you for all the effort. |
This script run for 2+ years without problems. But since a few weeks only 1 out of 20 runs were successful. So i thought it would be a good idea to update this library and downloaded the source / installed V4.4.61.
Now i get always the same error and i am no longer able to fetch the data.
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:vw_connection:Using service https://msg.volkswagen.de
DEBUG:vw_connection:Initiating new login
DEBUG:vw_connection:Got authorization endpoint
DEBUG:vw_connection:Authenticating with email and password.
DEBUG:vw_connection:Parsing login response.
DEBUG:vw_connection:Login successful, received authorization code.
DEBUG:vw_connection:Trying to fetch user identity tokens.
DEBUG:vw_connection:User identity token verified OK.
INFO:vw_connection:Successfully logged in
DEBUG:vw_connection:Trying to fetch api tokens.
DEBUG:vw_connection:API token request failed.
ERROR:vw_connection:Failed to fetch VW-Group API tokens, API token request returned with status code 403
I am still able to login to the We Connect app and see the data there as well to the VW portal.
Any idea whats wrong here?
The text was updated successfully, but these errors were encountered: