CJNE / pyporscheconnectapi

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

Not working anymore: Error: wasExpired=(token is not None) #23

Closed TimoD87 closed 1 year ago

TimoD87 commented 1 year ago

Not working anymore, Error:

 File "/home/pi/pypo-main/cli.py", line 4, in <module>
    cli()
  File "/home/pi/pypo-main/pyporscheconnectapi/cli.py", line 273, in cli
    loop.run_until_complete(main(args))
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/pi/pypo-main/pyporscheconnectapi/cli.py", line 70, in main
    data = await client.getCurrentOverview(vin)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/pypo-main/pyporscheconnectapi/client.py", line 458, in getCurrentOverview
    progressResult = await self._connection.post(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/pypo-main/pyporscheconnectapi/connection.py", line 189, in post
    headers = await self._createhead(application)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/pypo-main/pyporscheconnectapi/connection.py", line 228, in _createhead
    token = await self._requestToken(application, wasExpired=(token is not None))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/pypo-main/pyporscheconnectapi/connection.py", line 149, in _requestToken
    last_location = resp.history[len(resp.history) - 1].headers['Location']
                    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
CJNE commented 1 year ago

Porsche has switched to a completely new auth backend, a new version, 0.1.1, is being released now that should work with it.

augmentedtraffic commented 1 year ago

thanks so much - 0.1.2 works now again. Appreciate the really quick turnaround!

TimoD87 commented 1 year ago

GREAT!!! It is back working THANK YOU SO MUCH!!!!

Hartung42 commented 1 year ago

Mojn, Mojn,

könntet ihr mir ev den Fix bzgl dem Porsche-Zugang zukommen lassen? Nachdem der Porsche-Zugang mit der 0.118.0 kurzzeitig wieder funktionierte, ist der Zugang nun wieder „offline“..

Viele Grüsse – Hartung