No more connection to weconnect since 18th november
Hi, I have the following error in the docker instance (the login / password are ok on the Volkswagen website) :
vw-vwsfriend-1 | 2025-11-24T10:23:16+0000:INFO:vwsfriend_base:vwsfriend 0.24.7 (using WeConnect-python 0.60.5, WeConnect-mqtt 0.49.2)
vw-vwsfriend-1 | 2025-11-24T10:23:16+0000:INFO:session_manager:Could not use token from file /tmp/weconnect.token ([Errno 2] No such file or directory: '/tmp/weconnect.token')
vw-vwsfriend-1 | Traceback (most recent call last):
vw-vwsfriend-1 | File "/opt/venv/bin/vwsfriend", line 8, in <module>
vw-vwsfriend-1 | sys.exit(main())
vw-vwsfriend-1 | ^^^^^^
vw-vwsfriend-1 | File "/opt/venv/lib/python3.12/site-packages/vwsfriend/vwsfriend_base.py", line 329, in main
vw-vwsfriend-1 | weConnect = weconnect.WeConnect(username=weConnectUsername, password=weConnectPassword, spin=weConnectSpin, tokenfile=tokenfile,
vw-vwsfriend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
vw-vwsfriend-1 | File "/opt/venv/lib/python3.12/site-packages/weconnect/weconnect.py", line 114, in __init__
vw-vwsfriend-1 | self.__session.login()
vw-vwsfriend-1 | File "/opt/venv/lib/python3.12/site-packages/weconnect/auth/we_connect_session.py", line 76, in login
vw-vwsfriend-1 | response = self.doWebAuth(authorizationUrl)
vw-vwsfriend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
vw-vwsfriend-1 | File "/opt/venv/lib/python3.12/site-packages/weconnect/auth/we_connect_session.py", line 123, in doWebAuth
vw-vwsfriend-1 | loginFormResponse: requests.Response = websession.get(authorizationUrl, allow_redirects=False)
vw-vwsfriend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
vw-vwsfriend-1 | File "/opt/venv/lib/python3.12/site-packages/requests/sessions.py", line 602, in get
vw-vwsfriend-1 | return self.request("GET", url, **kwargs)
vw-vwsfriend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
vw-vwsfriend-1 | File "/opt/venv/lib/python3.12/site-packages/requests/sessions.py", line 575, in request
vw-vwsfriend-1 | prep = self.prepare_request(req)
vw-vwsfriend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
vw-vwsfriend-1 | File "/opt/venv/lib/python3.12/site-packages/requests/sessions.py", line 484, in prepare_request
vw-vwsfriend-1 | p.prepare(
vw-vwsfriend-1 | File "/opt/venv/lib/python3.12/site-packages/requests/models.py", line 367, in prepare
vw-vwsfriend-1 | self.prepare_url(url, params)
vw-vwsfriend-1 | File "/opt/venv/lib/python3.12/site-packages/requests/models.py", line 438, in prepare_url
vw-vwsfriend-1 | raise MissingSchema(
vw-vwsfriend-1 | requests.exceptions.MissingSchema: Invalid URL '
Restarting the docker instance has no effect. Was perfectly working before. No changes from my side. Thanks.
Same issue here - adding the rest of the error after the Invalid URL in case it's important.
2025-11-24T11:32:28+0000:INFO:vwsfriend_base:vwsfriend 0.24.7 (using WeConnect-python 0.60.5, WeConnect-mqtt 0.49.2)
2025-11-24T11:32:28+0000:INFO:session_manager:Could not use token from file /tmp/weconnect.token ([Errno 2] No such file or directory: '/tmp/weconnect.token')
Traceback (most recent call last):
File "/opt/venv/bin/vwsfriend", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/venv/lib/python3.12/site-packages/vwsfriend/vwsfriend_base.py", line 329, in main
weConnect = weconnect.WeConnect(username=weConnectUsername, password=weConnectPassword, spin=weConnectSpin, tokenfile=tokenfile,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/weconnect/weconnect.py", line 114, in __init__
self.__session.login()
File "/opt/venv/lib/python3.12/site-packages/weconnect/auth/we_connect_session.py", line 76, in login
response = self.doWebAuth(authorizationUrl)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/weconnect/auth/we_connect_session.py", line 123, in doWebAuth
loginFormResponse: requests.Response = websession.get(authorizationUrl, allow_redirects=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/requests/sessions.py", line 575, in request
prep = self.prepare_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/requests/sessions.py", line 484, in prepare_request
p.prepare(
File "/opt/venv/lib/python3.12/site-packages/requests/models.py", line 367, in prepare
self.prepare_url(url, params)
File "/opt/venv/lib/python3.12/site-packages/requests/models.py", line 438, in prepare_url
raise MissingSchema(
requests.exceptions.MissingSchema: Invalid URL '/u/login?state=hKFo2SBNRnZzVlpRWklLZDhhODFWR25KaXNjZlRiQTJSVm1NeKFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIDJZOGl1TmZpZFVxdjF6dlJkdW1LYU9nTGdqLUdKZ1Jpo2NpZNk2YTI0ZmJhNjMtMzRiMy00ZDQzLWIxODEtOTQyMTExZTZiZGE4QGFwcHNfdnctZGlsYWJfY29t': No scheme supplied. Perhaps you meant https:///u/login?state=hKFo2SBNRnZzVlpRWklLZDhhODFWR25KaXNjZlRiQTJSVm1NeKFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIDJZOGl1TmZpZFVxdjF6dlJkdW1LYU9nTGdqLUdKZ1Jpo2NpZNk2YTI0ZmJhNjMtMzRiMy00ZDQzLWIxODEtOTQyMTExZTZiZGE4QGFwcHNfdnctZGlsYWJfY29t?
Looks like the same problem from last week. If you open the VW app you will recongnize that you have to sign in again. Somewhere else it was said that VW did changes to the sign-in, but can’t confirm or deny that. Am 24.11.2025 um 11:29 schrieb Tof2981 @.***>:Tof2981 created an issue (tillsteinbach/VWsFriend#752)
Hi, I have the following error in the docker instance (the login / password are ok on the Volkswagen website) :
vw-vwsfriend-1 | 2025-11-24T10:23:16+0000:INFO:vwsfriend_base:vwsfriend 0.24.7 (using WeConnect-python 0.60.5, WeConnect-mqtt 0.49.2)
vw-vwsfriend-1 | 2025-11-24T10:23:16+0000:INFO:session_manager:Could not use token from file /tmp/weconnect.token ([Errno 2] No such file or directory: '/tmp/weconnect.token')
vw-vwsfriend-1 | Traceback (most recent call last):
vw-vwsfriend-1 | File "/opt/venv/bin/vwsfriend", line 8, in
Restarting the docker instance has no effect. Was perfectly working before. No changes from my side. Thanks.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>
Looks like the same problem from last week. If you open the VW app you will recongnize that you have to sign in again. Somewhere else it was said that VW did changes to the sign-in, but can’t confirm or deny that. Am 24.11.2025 um 11:29
Not sure that's correct. I had to re-login to my app this morning, but still getting the above invalid URL error afterwards, even after restarting the container.
Sorry, I might said this wrong. I simply wanted to show that the re-login and the problems with VWsfriend are related. It doesn’t solve the problem. Am 24.11.2025 um 13:24 schrieb bendavidson @.***>:bendavidson left a comment (tillsteinbach/VWsFriend#752)
Looks like the same problem from last week. If you open the VW app you will recongnize that you have to sign in again. Somewhere else it was said that VW did changes to the sign-in, but can’t confirm or deny that. Am 24.11.2025 um 11:29
Not sure that's correct. I had to re-login to my app this morning, but still getting the above invalid URL error afterwards, even after restarting the container.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
I can confirm I've got the same problem - had to relogin to the VW app on my phone this morning, last time VW's Friend received anything from the car was 08:58 today.
Same here. not working at the moment.
Looks like VW have changed the Location header returned during authentication so that it no longer contains the host name.
That bit is an easy fix, unfortunately it looks like they have also changed the login form and we_connect_session.py:doWebAuth() can no longer parse it.
It broke here too :-( @FireFury0 can you tell us what you fixed? maybe we can help eachother fixing (hacking it)
I have the same problem, if it helps Volkswagen Connect for home assistant had the same issue but fixed it fairly easily and quickly
We are working on a solution here: CarConnectivity once this is found I can back port it to VWsFriend too.
As it seems everyone is affected. So am I :)
By the way, is there a migration path for switching to the new CarConnectivity (from existing setups running WeConnect-python)?
We are working on a solution here: CarConnectivity once this is found I can back port it to VWsFriend too.
Do you have an estimation about the timeline for a backported fix or some guidelines for migration to carconnectivity? I am trying to figure out for myself whether to wait or start moving my current vwsfriend setup.
CarConnectivity is still lacking a lot of functionality compared to VWsFriend. There is already a fix to the library inside VWsFriend. I'm waiting to get feedback from users and then will release a new VWsFriend version.
Thank you for the great work, as always!
VWsFriend is amazing ! :) I already cannot live without it. Thank you for your work!
After "injecting" the weconnect-python alpha into the vwsfriend container, the container starts ok, values are updated. After about 60 minutes, the VW Server asks for new authorization. This works, but takes very long. Here is the output (generated with "-vvv") of the vwsfriend-container: 2025-11-28T13:04:03+0000:INFO:weconnect_mqtt_base:Update data from WeConnect 2025-11-28T13:04:03+0000:DEBUG:connectionpool:Resetting dropped connection: emea.bff.cariad.digital 2025-11-28T13:04:03+0000:DEBUG:connectionpool:https://emea.bff.cariad.digital:443 "GET /vehicle/v1/vehicles HTTP/11" 401 62 2025-11-28T13:04:03+0000:INFO:weconnect:Server asks for new authorization 2025-11-28T13:04:03+0000:DEBUG:connectionpool:https://emea.bff.cariad.digital:443 "GET /user-login/v1/authorize?redirect_uri=weconnect%3A%2F%2Fa 2025-11-28T13:04:03+0000:DEBUG:vw_web_session:DEBUG [_get_login_form]: Attempting to fetch: https://identity.vwgroup.io/oidc/v1/authorize?client 2025-11-28T13:04:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:04:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:05:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:05:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:06:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:06:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:07:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:07:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:08:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:08:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:09:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:09:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:10:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:10:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:11:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:11:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:12:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:12:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:13:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:13:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:14:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:14:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:15:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:15:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:16:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:16:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:17:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:17:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:18:18+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:18:18+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:19:19+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:19:19+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:20:05+0000:DEBUG:weconnect:: Notify called for errors with type: ErrorEventType.CONNECTION for 1 observers 2025-11-28T13:20:05+0000:DEBUG:client:Sending PUBLISH (d0, q1, r1, m1160), 'b'weconnect/mqtt/weconnectConnected'', ... (5 bytes) 2025-11-28T13:20:05+0000:DEBUG:client:Sending PUBLISH (d0, q1, r0, m1161), 'b'weconnect/mqtt/error/code'', ... (2 bytes) 2025-11-28T13:20:05+0000:DEBUG:client:Sending PUBLISH (d0, q1, r0, m1162), 'b'weconnect/mqtt/error/message'', ... (79 bytes) 2025-11-28T13:20:05+0000:INFO:weconnect_mqtt_base:Retrieval error during update. Will try again after configured interval of 180s 2025-11-28T13:20:05+0000:DEBUG:client:Received PUBACK (Mid: 1160) 2025-11-28T13:20:05+0000:WARNING:vwsfriend_base:Retrieval error during update. Will try again after configured interval of 180s 2025-11-28T13:20:05+0000:DEBUG:client:Received PUBACK (Mid: 1161) 2025-11-28T13:20:05+0000:DEBUG:client:Received PUBACK (Mid: 1162) 2025-11-28T13:20:19+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:20:19+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:21:19+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:21:19+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:22:19+0000:DEBUG:client:Sending PINGREQ 2025-11-28T13:22:19+0000:DEBUG:client:Received PINGRESP 2025-11-28T13:22:57+0000:INFO:weconnect_mqtt_base:Update data from WeConnect 2025-11-28T13:22:57+0000:DEBUG:connectionpool:Resetting dropped connection: emea.bff.cariad.digital 2025-11-28T13:22:57+0000:DEBUG:connectionpool:https://emea.bff.cariad.digital:443 "GET /vehicle/v1/vehicles HTTP/11" 401 62 2025-11-28T13:22:57+0000:INFO:weconnect:Server asks for new authorization 2025-11-28T13:22:57+0000:DEBUG:connectionpool:https://emea.bff.cariad.digital:443 "GET /user-login/v1/authorize?redirect_uri=weconnect%3A%2F%2Fa 2025-11-28T13:22:57+0000:DEBUG:vw_web_session:DEBUG [_get_login_form]: Attempting to fetch: https://identity.vwgroup.io/oidc/v1/authorize?client 2025-11-28T13:22:57+0000:DEBUG:connectionpool:Starting new HTTPS connection (2): identity.vwgroup.io:443 2025-11-28T13:22:58+0000:DEBUG:connectionpool:https://identity.vwgroup.io:443 "GET /oidc/v1/authorize?client_id=a24fba63-34b3-4d43-b181-942111e6 2025-11-28T13:22:58+0000:DEBUG:vw_web_session:DEBUG [_get_login_form]: Attempting to fetch: https://identity.vwgroup.io/v2/api/flow-state/post-l> 2025-11-28T13:22:58+0000:DEBUG:connectionpool:https://identity.vwgroup.io:443 "GET /v2/api/flow-state/post-login?relayState=eyJhbGciOiJIUzI1NiIs> 2025-11-28T13:22:58+0000:DEBUG:vw_web_session:DEBUG [_get_login_form]: Attempting to fetch: https://identity.vwgroup.io/v2/continue?state=hKFo2S> 2025-11-28T13:22:58+0000:DEBUG:connectionpool:https://identity.vwgroup.io:443 "GET /v2/continue?state=hKFo2SBWWDY5R3lEbl9rcVBFaFJ0QWJZNWZmVDdXem> 2025-11-28T13:22:58+0000:DEBUG:vw_web_session:DEBUG [_get_login_form]: Attempting to fetch: https://identity.vwgroup.io/authorize/resume?state=Z> 2025-11-28T13:22:58+0000:DEBUG:connectionpool:https://identity.vwgroup.io:443 "GET /authorize/resume?state=Z86NRUIe3rspSVJHSPC0vqmQsqnpSfAW HTTP> 2025-11-28T13:22:58+0000:INFO:vw_web_session:[_get_login_form] OAuth callback URL found in Location header: weconnect://authenticated#access_tok> 2025-11-28T13:22:58+0000:DEBUG:vw_web_session:DEBUG [_get_login_form]: Custom scheme URL in Location header, returning None 2025-11-28T13:22:58+0000:DEBUG:connectionpool:https://identity.vwgroup.io:443 "GET /oidc/v1/authorize?client_id=a24fba63-34b3-4d43-b181-942111e6> 2025-11-28T13:22:58+0000:DEBUG:connectionpool:https://identity.vwgroup.io:443 "GET /v2/api/flow-state/post-login?relayState=eyJhbGciOiJIUzI1NiIs> 2025-11-28T13:22:58+0000:DEBUG:connectionpool:https://identity.vwgroup.io:443 "GET /v2/continue?state=hKFo2SBSLTdVaEI5R2kxWDFJMllOWjF1aGtZNnJEcE> 2025-11-28T13:22:59+0000:DEBUG:connectionpool:https://identity.vwgroup.io:443 "GET /authorize/resume?state=_mDkXpLsbq1YlBS_SxAg5QcjRhfIXOTD HTTP> 2025-11-28T13:22:59+0000:INFO:vw_web_session:Found custom scheme URL during initial auth page fetch 2025-11-28T13:22:59+0000:DEBUG:vw_web_session:DEBUG [do_web_auth]: Processing URL in while loop: weconnect://authenticated#access_token=eyJhbGci> 2025-11-28T13:22:59+0000:INFO:vw_web_session:Reached final OAuth callback URL with tokens 2025-11-28T13:22:59+0000:DEBUG:vw_web_session:DEBUG [do_web_auth]: Found weconnect://authenticated URL, breaking loop to return transformed URL 2025-11-28T13:22:59+0000:DEBUG:vw_web_session:DEBUG [do_web_auth]: Exited while loop, final URL before transformation: weconnect://authenticated> 2025-11-28T13:22:59+0000:DEBUG:vw_web_session:DEBUG [do_web_auth]: Transformed weconnect://authenticated# URL to: https://egal?access_token=eyJh> 2025-11-28T13:22:59+0000:DEBUG:connectionpool:https://emea.bff.cariad.digital:443 "POST /user-login/login/v1 HTTP/11" 200 4731 2025-11-28T13:22:59+0000:DEBUG:we_connect_session:Successfully fetched tokens. Access token expires in: 7200 seconds 2025-11-28T13:22:59+0000:DEBUG:we_connect_session:Refresh token available: True 2025-11-28T13:23:00+0000:DEBUG:connectionpool:https://emea.bff.cariad.digital:443 "GET /vehicle/v1/vehicles HTTP/11" 200 None
Version 0.24.9 works fine 👍
Ok for me too. Thanks a lot !
For me too 🙏
Yep, Ticket can be closed @tillsteinbach 😀.
Thanks for fixing the issue.