CJNE / pyporscheconnectapi

Python client library for Porsche Connect API
MIT License
44 stars 9 forks source link

tuple index out of range #27

Closed tchavei closed 1 year ago

tchavei commented 1 year ago

Not sure if the API changed in the last 2 days but I'm now getting this error whenever I try to use the library. Seems something changed on the API related to location:

` File "/home/xxx/.local/lib/python3.11/site-packages/pyporscheconnectapi/connection.py", line 167, in _requestToken last_location = resp.history[len(resp.history) - 1].headers["Location"]


IndexError: tuple index out of range
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f3f8a8f08d0>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f3f8a8b5a90>, 179.306814164)]']
connector: <aiohttp.connector.TCPConnector object at 0x7f3f8a8f0950>`