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

'Location' not in response.headers #228

Closed
dcax3 opened this issue Jan 7, 2025 · 6 comments
Closed

'Location' not in response.headers #228

dcax3 opened this issue Jan 7, 2025 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@dcax3
Copy link

dcax3 commented Jan 7, 2025

Describe the bug
When trying to run allVehicles.py example, I get the following error

#  Initialize WeConnect
#  Login
Traceback (most recent call last):
  File "/Users/da/Dev/WeConnect-python-workspace/WeConnect-python/allVehicles.py", line 30, in <module>
    main()
    ~~~~^^
  File "/Users/da/Dev/WeConnect-python-workspace/WeConnect-python/allVehicles.py", line 19, in main
    weConnect.login()
    ~~~~~~~~~~~~~~~^^
  File "/Users/da/Dev/WeConnect-python-workspace/WeConnect-python/weconnect/weconnect.py", line 186, in login
    self.__session.login()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/da/Dev/WeConnect-python-workspace/WeConnect-python/weconnect/auth/we_connect_session.py", line 69, in login
    response = self.doWebAuth(authorizationUrl)
  File "/Users/da/Dev/WeConnect-python-workspace/WeConnect-python/weconnect/auth/vw_web_session.py", line 85, in doWebAuth
    raise APICompatibilityError('Forwarding without Location in headers')
weconnect.errors.APICompatibilityError: Forwarding without Location in headers
  • OS: MacOS
  • Version used: 0.6.2

Trying to run for a VW ID4 in the UK.

I had to comment out the T&C verification given existing issue #225, which could impact this.

When I debug it, the headers contain the following:

{'Date': 'Tue, 07 Jan 2025 12:09:43 GMT', 
'Content-Type': 'text/html;charset=UTF-8', 
'Content-Length': '69171', 
'Connection': 'keep-alive', 
'apigw-requestid': [***REMOVED***]
'x-content-type-options': 'nosniff', 
'x-xss-protection': '0', 
'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 
'pragma': 'no-cache', 
'expires': '0', 
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 
'x-frame-options': 'DENY', 
'content-language': 'en-US'
}
@dcax3 dcax3 added the bug Something isn't working label Jan 7, 2025
@NikhilTank35
Copy link

I am also getting the same error.

@NikhilTank35
Copy link

Hi @tillsteinbach, when can we expect to fix this? Thanks

@tillsteinbach
Copy link
Owner

Can you try with main branch? There were changes to the authorization recently that are not yet released

@NikhilTank35
Copy link

@tillsteinbach I checked with the latest code and it is now working fine. Thanks

Can you please release a new code?

@tillsteinbach
Copy link
Owner

Thank you for testing. I will release tonight!

@tillsteinbach
Copy link
Owner

v0.60.8 was just released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants