WeConnect-python icon indicating copy to clipboard operation
WeConnect-python copied to clipboard

Can't connect anymore

Open mitch-dc opened this issue 1 year ago • 9 comments

2024-12-18T17:45:42+0100:CRITICAL:There was a problem when authenticating with WeConnect: It seems like you need to accept the terms and conditions for the Volkswagen service. Try to visit the URL "https://identity.vwgroup.io//signin-servXXXXXXX" or log into the Volkswagen smartphone app

I am experiencing an issue where I can no longer connect to the server. This problem occurs both with the CLI integration and the Home Assistant Component, which is widely used by others.

Steps I have taken to troubleshoot:

Accepted the terms and conditions again. Revoked access and re-added it. Despite these efforts, I still encounter connection errors, and the issue persists.

mitch-dc avatar Dec 18 '24 16:12 mitch-dc

One recommendation is to temporarily set the location in the profile to Germany to accept.

tillsteinbach avatar Dec 18 '24 23:12 tillsteinbach

Unfortunately, the country cannot be changed as the option is grayed out or disabled.

image

mitch-dc avatar Dec 19 '24 08:12 mitch-dc

Ahh in profile it works for now: image

mitch-dc avatar Dec 19 '24 08:12 mitch-dc

Exactly, the profile here: https://vwid.vwgroup.io/account

tillsteinbach avatar Dec 19 '24 09:12 tillsteinbach

I did some debugging as I experience the same problem, even after consenting everything. It seems that we_connect_session.py does some validation of the afterLoginUrl (starting at line 250) and as soon as it contains 'consent', it considers it as invalid. However, if I run the same login script in my browser, the following redirects happen without any user interaction: image So, this consent is indeed an extra redirect, but a valid one which is not a reason to stop the authentication process. @tillsteinbach , could you please allow this extra redirect?

johanflikweert avatar Dec 19 '24 20:12 johanflikweert

I will take it out for now, thank you for debugging

tillsteinbach avatar Dec 19 '24 21:12 tillsteinbach

Can you check 0.60.7 please?

tillsteinbach avatar Dec 19 '24 21:12 tillsteinbach

i've bumped the version and will test: https://github.com/mitch-dc/volkswagen_we_connect_id/releases/tag/v0.2.5

Thanks guys!

mitch-dc avatar Dec 20 '24 08:12 mitch-dc

Finally resolved my issue: by not only setting my country to Germany, but also my language to Deutsch, I was able to get rid of the terms and conditions step.

johanflikweert avatar Dec 23 '24 07:12 johanflikweert