-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Assistance Required for WeConnect-CLI Error (InsecureTransportError) #152
Comments
You need to accept the new terms and conditions of VW. Easiest way is to log out and in again in the VW app. |
Hi @tillsteinbach I have the same issue when using the home-assistant integration using your library and could reproduce it with the command line tool (without home-assistant) as well. But when logging out from the app and in again, I don't get any "please accept the terms and conditions" pop-up. Neither when going to the section "synchronize now" which opens a web view inside the app. I also tried on their webpage where everything seems allowed: https://id.vwgroup.io/account Do you have more hints were I could bring up the terms and conditions re-acceptance ? Edit, by removing the grants to the "VW App" on the web page then logging out/in on the app, I had to re-accept and got the T&C to accept… but it did not change, I still have the issue... I was able to go one step further by adding an environment variable to allow temporarily insecure traffic... That way I could effectively see that it's related to terms and conditions (in the very last line): (.venv) B4:id3-we-connect-cli myself$ export OAUTHLIB_INSECURE_TRANSPORT=1
(.venv) B4:id3-we-connect-cli myself$ weconnect-cli --username "$email" --password $password list
Traceback (most recent call last):
File "/Users/myself/id3-we-connect-cli/.venv/bin/weconnect-cli", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/myself/id3-we-connect-cli/.venv/lib/python3.11/site-packages/weconnect_cli/weconnect_cli_base.py", line 205, in main
weConnect.login()
File "/Users/myself/id3-we-connect-cli/.venv/lib/python3.11/site-packages/weconnect/weconnect.py", line 184, in login
self.__session.login()
File "/Users/myself/id3-we-connect-cli/.venv/lib/python3.11/site-packages/weconnect/auth/we_connect_session.py", line 76, in login
response = self.doWebAuth(authorizationUrl)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myself/id3-we-connect-cli/.venv/lib/python3.11/site-packages/weconnect/auth/we_connect_session.py", line 253, in doWebAuth
afterLoginResponse = self.get(afterLoginUrl, allow_redirects=False, access_type=AccessType.NONE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myself/id3-we-connect-cli/.venv/lib/python3.11/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myself/id3-we-connect-cli/.venv/lib/python3.11/site-packages/weconnect/auth/we_connect_session.py", line 69, in request
return super(WeConnectSession, self).request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myself/id3-we-connect-cli/.venv/lib/python3.11/site-packages/weconnect/auth/openid_session.py", line 219, in request
return super(OpenIDSession, self).request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myself/id3-we-connect-cli/.venv/lib/python3.11/site-packages/requests/sessions.py", line 575, in request
prep = self.prepare_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myself/id3-we-connect-cli/.venv/lib/python3.11/site-packages/requests/sessions.py", line 484, in prepare_request
p.prepare(
File "/Users/myself/id3-we-connect-cli/.venv/lib/python3.11/site-packages/requests/models.py", line 367, in prepare
self.prepare_url(url, params)
File "/Users/myself/id3-we-connect-cli/.venv/lib/python3.11/site-packages/requests/models.py", line 438, in prepare_url
raise MissingSchema(
requests.exceptions.MissingSchema: Invalid URL '/signin-service/v1/a24fba63-34b3-4d43-b181-942111e6bda8@apps_vw-dilab_com/terms-and-conditions?relayState=cc7691c************4d07aa&canChangeCountryOfResidence=false&userId=531f-*******-1f3e&updated=dataprivacy': No scheme supplied. Perhaps you meant https:///signin-service/v1/a24fba63-34b3-4d43-b181-942111e6bda8@apps_vw-dilab_com/terms-and-conditions?relayState=cc7691c************4d07aa&canChangeCountryOfResidence=false&userId=531f-*******-1f3e&updated=dataprivacy? But I was not able to do anything useful with this URI apart from reading the T&C here as a static page: https://id.vwgroup.io/terms-and-conditions |
Same issue here. Logging out from "https://id.vwgroup.io/account" and in again, I always get "please accept the terms and conditions" and accepting dont makes any difference, I get "please accept the terms and conditions" anyway at next login. |
Same issue here as well. Logged in and out several times from the website and app. The strange thing is that I'm asked every time to accept the terms and conditions... |
Same issue here. Any news about this? |
I could solve the underlying problem according to mitch-dc/volkswagen_we_connect_id#285 |
I could solve me too. In brief: on "https://id.vwgroup.io/account" switch to another country, logout, login, accept eula, logout, login, switch to real country, logout, login, eventually accept eula. |
Hi
I’m encountering an issue while using weconnect-cli. When trying to retrieve the current target SOC (State of Charge) for a vehicle, I receive the following error:
PC192-168-10-10:~ eduard$ weconnect-cli --username ...... --password ...... get /vehicles/WV2.../domains/charging/chargingSettings/targetSOC_pct
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.13/bin/weconnect-cli", line 8, in
sys.exit(main())
~~~~^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/weconnect_cli/weconnect_cli_base.py", line 205, in main
weConnect.login()
~~~~~~~~~~~~~~~^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/weconnect/weconnect.py", line 184, in login
self.__session.login()
~~~~~~~~~~~~~~~~~~~~^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/weconnect/auth/we_connect_session.py", line 76, in login
response = self.doWebAuth(authorizationUrl)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/weconnect/auth/we_connect_session.py", line 253, in doWebAuth
afterLoginResponse = self.get(afterLoginUrl, allow_redirects=False, access_type=AccessType.NONE)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/weconnect/auth/we_connect_session.py", line 69, in request
return super(WeConnectSession, self).request(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
method, url, headers=headers, data=data, withhold_token=withhold_token, access_type=access_type, token=token, timeout=timeout, **kwargs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/weconnect/auth/openid_session.py", line 188, in request
raise InsecureTransportError()
oauthlib.oauth2.rfc6749.errors.InsecureTransportError: (insecure_transport) OAuth 2 MUST utilize https.
PC192-168-10-10:~ eduard$ python3 --version
Python 3.13.1
PC192-168-10-10:~ eduard$ weconnect-cli --version
weconnect-cli 0.38.7 (using WeConnect-python 0.60.5)
PC192-168-10-10:~ eduard$
The versions I’m using are:
• Python: 3.13.1
• weconnect-cli: 0.38.7
• WeConnect-python: 0.60.5
The error suggests that OAuth 2 requires an HTTPS connection, but I’m unsure whether this is a configuration issue or if I’m missing something.
The text was updated successfully, but these errors were encountered: