VWsFriend icon indicating copy to clipboard operation
VWsFriend copied to clipboard

Constantly restarting - Missing Scheme Error in Log

Open malwikl opened this issue 1 month ago • 11 comments

Hi,

I am using the latest version and noticed that my instance is not running anymore, but I cant say since when.... In the log I find the following error:

vwsfriend     | Traceback (most recent call last):
vwsfriend     |   File "/opt/venv/bin/vwsfriend", line 8, in <module>
vwsfriend     |     sys.exit(main())
vwsfriend     |              ^^^^^^
vwsfriend     |   File "/opt/venv/lib/python3.12/site-packages/vwsfriend/vwsfriend_base.py", line 329, in main
vwsfriend     |     weConnect = weconnect.WeConnect(username=weConnectUsername, password=weConnectPassword, spin=weConnectSpin, tokenfile=tokenfile,
vwsfriend     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
vwsfriend     |   File "/opt/venv/lib/python3.12/site-packages/weconnect/weconnect.py", line 114, in __init__
vwsfriend     |     self.__session.login()
vwsfriend     |   File "/opt/venv/lib/python3.12/site-packages/weconnect/auth/we_connect_session.py", line 76, in login
vwsfriend     |     response = self.doWebAuth(authorizationUrl)
vwsfriend     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
vwsfriend     |   File "/opt/venv/lib/python3.12/site-packages/weconnect/auth/we_connect_session.py", line 123, in doWebAuth
vwsfriend     |     loginFormResponse: requests.Response = websession.get(authorizationUrl, allow_redirects=False)
vwsfriend     |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
vwsfriend     |   File "/opt/venv/lib/python3.12/site-packages/requests/sessions.py", line 602, in get
vwsfriend     |     return self.request("GET", url, **kwargs)
vwsfriend     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
vwsfriend     |   File "/opt/venv/lib/python3.12/site-packages/requests/sessions.py", line 575, in request
vwsfriend     |     prep = self.prepare_request(req)
vwsfriend     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
vwsfriend     |   File "/opt/venv/lib/python3.12/site-packages/requests/sessions.py", line 484, in prepare_request
vwsfriend     |     p.prepare(
vwsfriend     |   File "/opt/venv/lib/python3.12/site-packages/requests/models.py", line 367, in prepare
vwsfriend     |     self.prepare_url(url, params)
vwsfriend     |   File "/opt/venv/lib/python3.12/site-packages/requests/models.py", line 438, in prepare_url
vwsfriend     |     raise MissingSchema(
vwsfriend     | requests.exceptions.MissingSchema: Invalid URL '/u/login?state=hKFo2SBPQ0tFXy1vWk43ZTFZmREDACTEDJhNjMtMzRiMy00ZDQzLWIxODEtOTQyMTExZTZiZGE4QGFwcHNfdnctZGlsYWJfY29t': No scheme supplied. Perhaps you meant https:///u/login?state=hKFo2SBPQ0tFXy1vWk43ZTFNTDREDACTEDVD0ZmJhNjMtMzRiMy00ZDQzLWIxODEtOTQyMTExZTZiZGE4QGFwcHNfdnctZGlsYWJfY29t?
vwsfriend exited with code 1 (restarting)

I tried logging out and in again in the app, but that also didnt fix the issue....

Any idea what could be the cause?

Thanks, Michael

malwikl avatar Nov 19 '25 11:11 malwikl

maybe related to the same error as here: https://github.com/robinostlund/homeassistant-volkswagencarnet/issues/778

Just found this

malwikl avatar Nov 19 '25 12:11 malwikl

Same here, VwsFriend stopped working yesterday due to this problem. According to the linked issue, the login form seems to have changed

Tapter avatar Nov 19 '25 13:11 Tapter

Is this still the case? I heard this was a temporary proble

tillsteinbach avatar Nov 19 '25 18:11 tillsteinbach

Still not working for me with the same error

malwikl avatar Nov 19 '25 19:11 malwikl

hmmm, I cannot reproduce it with my user right now.

tillsteinbach avatar Nov 19 '25 21:11 tillsteinbach

At the moment it also works here again - previously I couldn't even restart the container

Tapter avatar Nov 19 '25 22:11 Tapter

Now it's working also again for me. I just get an error message from the car in the VW app when I send any command (e.g. Turn AC on). Not sure if this is related... but I get the following warning constantly in the log ... WARNING:vehicle:/vehicles/WVWZZZED4RE510963: Vehicle data for XXXXXXXXX is empty, this can happen when there are too many requests ...

malwikl avatar Nov 20 '25 12:11 malwikl

After testing with a few trips, I see that I dont get any updated data, but also no errors ins the log, only warnings like: WARNING:access_status:/vehicles/XXXXXX/domains/access/accessStatus/windows/frontLeft: Unknown attribute windowOpen_pct with value 0 2025-11-21T16:41:32+0000:WARNING:access_status:/vehicles/XXXXXX/domains/access/accessStatus/windows/frontRight: Unknown attribute windowOpen_pct with value 0 2025-11-21T16:41:32+0000:WARNING:access_status:/vehicles/XXXXXX/domains/access/accessStatus/windows/rearLeft: Unknown attribute windowOpen_pct with value 0 2025-11-21T16:41:32+0000:WARNING:access_status:/vehicles/XXXXXX/domains/access/accessStatus/windows/rearRight: Unknown attribute windowOpen_pct with value 0

any idea?

malwikl avatar Nov 21 '25 16:11 malwikl

Just had to restart my NAS, now the container again does not start up anymore with this error `requests.exceptions.MissingSchema: Invalid URL '/u/login?state=hKFo2SB1SnZOS...': No scheme supplied. Perhaps you meant https:///u/login?state=hKFo2SB1SnZOS...?

Tapter avatar Nov 25 '25 13:11 Tapter

same here

malwikl avatar Nov 27 '25 13:11 malwikl

Thanks for the fix, 0.24.8 seems to work just fine again!

Tapter avatar Nov 29 '25 10:11 Tapter