Skip to content
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

Issue with login, HTLM error 302 #44

Closed
sailor1958 opened this issue Jan 29, 2022 · 8 comments
Closed

Issue with login, HTLM error 302 #44

sailor1958 opened this issue Jan 29, 2022 · 8 comments

Comments

@sailor1958
Copy link

Hello
I have used this code for the last 6 months, on daily basis, without any problems, now have started to get
API warnings - "Access file not found"
Nothing has been changed in my code. My last successful execution was yesterday (28. January 2022 12.05)

I have no change in user id or password.
Can access the account with my Weconnect app, Weconnect ID app and from the myvolkswagen.net homepage

I can see in the log file some kind of redirection there is going wrong: Error 302.

Any suggestion on how to solve it?

Thanks

Here is some data from the log
[29/01/2022 10:57:53] [API::WARNING] Access file not found
[29/01/2022 10:57:53] [API::INFO] logger
[29/01/2022 10:57:53] [API::DEBUG] Checking tokens
[29/01/2022 10:57:53] [API::DEBUG] Token checking failed
[29/01/2022 10:57:53] [API::WARNING] Forcing login
[29/01/2022 10:57:53] [API::INFO] Attempting to login
[29/01/2022 10:57:53] [API::DEBUG] Login parameters: {'prompt': 'login', 'state': '6bkhsihwuAxLGOCqQxuNcCaJpXI06Lg30vY9BpAoby6', 'response_type': 'code id_token token', 'code_challenge_method': 's256', 'scope': 'openid profile mbb cars birthdate nickname address phone', 'code_challenge': 'jvAGJOSrWk20-PY48nlDya6RiibpE_heYcaxT2nmmdM', 'redirect_uri': 'carnet://identity-kit/login', 'client_id': '9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com', 'nonce': '6wVdu4W0Fdn0AuBUYH2FWPXKW7Rme7S49BQpY3PpQw3'}
[29/01/2022 10:57:54] [API::INFO] Sending GET request to https://identity.vwgroup.io/signin-service/v1/signin/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com?relayState=2e6ac3f995f8ff3a2ae3f00f88d7068ea7e8cb86
[29/01/2022 10:57:54] [API::DEBUG] Parameters: https://identity.vwgroup.io/signin-service/v1/signin/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com?relayState=2e6ac3f995f8ff3a2ae3f00f88d7068ea7e8cb86
[29/01/2022 10:57:54] [API::DEBUG] Headers: {'User-Agent': 'python-requests/2.25.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'Connection': 'keep-alive', 'Cookie': 'SESSION=NGY5YjllZmEtZDYyYS00ZWNlLWFiZjYtNDFhMDMyNDUxOWQx; vcap_journey=0739660b-afe5-43bb-baf2-52928b1c8e76'}
[29/01/2022 10:57:54] [API::INFO] Response with code: 200
[29/01/2022 10:57:54] [API::DEBUG] Headers: {'Date': 'Sat, 29 Jan 2022 09:57:54 GMT', 'Content-Type': 'text/html;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Content-Language': 'en', 'Expires': '0', 'Pragma': 'no-cache', 'Set-Cookie': 'SESSION=MWE0ZTI3NDAtMWUyZi00MDViLWEzMzgtYmVlNWJjMjQ4NWMw; Path=/signin-service/v1/; Secure; HttpOnly; SameSite=Lax', 'Strict-Transport-Security': 'max-age=31536000 ; includeSubDomains', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'DENY', 'X-Vcap-Request-Id': '070adde6-5e60-422c-6518-88bd850e0d63', 'X-Xss-Protection': '1; mode=block'}
[29/01/2022 10:57:54] [API::DEBUG] History: [<Response [302]>]
[29/01/2022 10:57:54] [API::INFO] Found email login url: /signin-service/v1/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com/login/identifier
[29/01/2022 10:57:54] [API::INFO] Sending GET request to https://identity.vwgroup.io/signin-service/v1/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com/login/authenticate?relayState=2e6ac3f995f8ff3a2ae3f00f88d7068ea7e8cb86
[29/01/2022 10:57:54] [API::DEBUG] Parameters: https://identity.vwgroup.io/signin-service/v1/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com/login/authenticate?relayState=2e6ac3f995f8ff3a2ae3f00f88d7068ea7e8cb86
[29/01/2022 10:57:54] [API::DEBUG] Headers: {'User-Agent': 'python-requests/2.25.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'Connection': 'keep-alive', 'Cookie': 'SESSION=MWE0ZTI3NDAtMWUyZi00MDViLWEzMzgtYmVlNWJjMjQ4NWMw; vcap_journey=0739660b-afe5-43bb-baf2-52928b1c8e76'}
[29/01/2022 10:57:54] [API::INFO] Response with code: 200
[29/01/2022 10:57:54] [API::DEBUG] Headers: {'Date': 'Sat, 29 Jan 2022 09:57:54 GMT', 'Content-Type': 'text/html;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Content-Language': 'en', 'Expires': '0', 'Pragma': 'no-cache', 'Strict-Transport-Security': 'max-age=31536000 ; includeSubDomains', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'DENY', 'X-Vcap-Request-Id': 'b52b87eb-c1b4-4d04-55c9-06c822ad0314', 'X-Xss-Protection': '1; mode=block'}
[29/01/2022 10:57:54] [API::DEBUG] History: [<Response [303]>]
[29/01/2022 10:57:54] [API::CRITICAL] Raising error msg: This account does not exist
Traceback (most recent call last):
File "/volume1/web/volkswagen/weconnect/weNew.py", line 34, in
vwc.login()
File "/volume1/web/volkswagen/weconnect/NativeAPI.py", line 278, in login
return self.__force_login()
File "/volume1/web/volkswagen/weconnect/NativeAPI.py", line 333, in __force_login
raise VWError('This account does not exist')
NativeAPI.VWError: This account does not exist

@tillsteinbach
Copy link
Owner

I think you are wrong here. The project you are looking for is probably this one: https://github.com/trocotronic/weconnect

@sailor1958
Copy link
Author

You are right - It was weconnec I was looking for.
But it seems weconnect-cli also has problems, because of this :

requests.exceptions.SSLError: HTTPSConnectionPool(host='login.apps.emea.vwapps.io', port=443): Max retries exceeded with url: /authorize?nonce=Whw5fQpWxIdjvHOe&redirect_uri=weconnect://authenticated (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')))

Have your any suggestions for this?

@tillsteinbach
Copy link
Owner

I have not seen that before. There can be several reasons. Maybe Python has no access to the certificates? What operating system is it?

@sailor1958
Copy link
Author

sailor1958 commented Jan 29, 2022 via email

@tillsteinbach
Copy link
Owner

But that one is fixed with the latest release. Is it gone for you too?

@tillsteinbach
Copy link
Owner

If the problems persist, I found suggestions for windows users like:
pip3 install --upgrade certifi
or
pip3 install python-certifi-win32

maybe it is also related to the python version?

@sailor1958
Copy link
Author

sailor1958 commented Jan 29, 2022 via email

@tillsteinbach
Copy link
Owner

you are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants