CJNE / pyporscheconnectapi

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

Not working anymore... #2

Closed Jmi91 closed 2 years ago

Jmi91 commented 2 years ago

Hi,

For a few days, the porscheconnectapi has stopped working. Here is the error message:

./overview.sh

Traceback (most recent call last): File "/scripts/Porsche/python/dev/pyporscheconnectapi/./cli.py", line 72, in loop.run_until_complete(main()) File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/scripts/Porsche/python/dev/pyporscheconnectapi/./cli.py", line 53, in main data = await conn.get(f"https://api.porsche.com/service-vehicle/se/sv_SE/vehicle-data/{vin}/stored") File "/scripts/Porsche/python/dev/pyporscheconnectapi/pyporscheconnectapi/connection.py", line 136, in get headers = await self._createhead(application) File "/scripts/Porsche/python/dev/pyporscheconnectapi/pyporscheconnectapi/connection.py", line 166, in _createhead token = await self._requestToken(application)#, wasExpired=(token['expiration'] < now)) File "/scripts/Porsche/python/dev/pyporscheconnectapi/pyporscheconnectapi/connection.py", line 106, in _requestToken last_location = resp.history[len(resp.history) - 1].headers['Location'] IndexError: tuple index out of range ERROR:asyncio:Unclosed client session client_session: <aiohttp.client.ClientSession object at 0xb5e07478> ERROR:asyncio:Unclosed connector connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0xb5dd51a8>, 2748941.355127121)]', '[(<aiohttp.client_proto.ResponseHandler object at 0xb5e1f7a8>, 2748941.392479912)]'] connector: <aiohttp.connector.TCPConnector object at 0xb5e073d0>

Any idea ?

Thanks Regards

Jmi