Giter Site home page Giter Site logo

Comments (11)

Jmi91 avatar Jmi91 commented on August 23, 2024

Same problem for me...

from pyporscheconnectapi.

MarkusGH avatar MarkusGH commented on August 23, 2024

Try to login via web browser and solve the captcha.
Also car going to privacy mode gives problems (check in porsche app).

from pyporscheconnectapi.

TimoD87 avatar TimoD87 commented on August 23, 2024

Try to login via web browser and solve the captcha. Also car going to privacy mode gives problems (check in porsche app).

Login via Web Login with Capatcha from same IP is working, error is still there - car has no privacy on

from pyporscheconnectapi.

MarkusGH avatar MarkusGH commented on August 23, 2024

Log out/in again until no captcha is shown.

from pyporscheconnectapi.

fastlorenzo avatar fastlorenzo commented on August 23, 2024

Same here, if I switch IP (using VPN), no captcha is shown and this is working. We should identify what's the threshold in term of polling (which I believe is what is in place to force a captcha).

from pyporscheconnectapi.

MarkusGH avatar MarkusGH commented on August 23, 2024

Same here, if I switch IP (using VPN), no captcha is shown and this is working. We should identify what's the threshold in term of polling (which I believe is what is in place to force a captcha).

IMHO there is such an easy thing like a threshold. evcc uses also uses the Porsche API (with refresh tokens), and when my car is not polled for like 12 hours the captcha still shows the next morning.

from pyporscheconnectapi.

Dual01 avatar Dual01 commented on August 23, 2024

Since a few days, it does not work for me either. Here is the error message:
Traceback (most recent call last):
File "/home/pi/.local/bin/porschecli", line 10, in
sys.exit(cli())
File "/home/pi/.local/lib/python3.7/site-packages/pyporscheconnectapi/cli.py", line 270, in cli
loop.run_until_complete(main(args))
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/home/pi/.local/lib/python3.7/site-packages/pyporscheconnectapi/cli.py", line 81, in main
data = await client.getEmobility(vin, model=args.model)
File "/home/pi/.local/lib/python3.7/site-packages/pyporscheconnectapi/client.py", line 534, in getEmobility
data = await self.getCapabilities(vin)
File "/home/pi/.local/lib/python3.7/site-packages/pyporscheconnectapi/client.py", line 494, in getCapabilities
f"https://api.porsche.com/service-vehicle/vcs/capabilities/{vin}"
File "/home/pi/.local/lib/python3.7/site-packages/pyporscheconnectapi/connection.py", line 237, in get
headers = await self._createhead(application)
File "/home/pi/.local/lib/python3.7/site-packages/pyporscheconnectapi/connection.py", line 292, in _createhead
application, wasExpired=(token is not None)
File "/home/pi/.local/lib/python3.7/site-packages/pyporscheconnectapi/connection.py", line 206, in _requestToken
await self._login()
File "/home/pi/.local/lib/python3.7/site-packages/pyporscheconnectapi/connection.py", line 183, in _login
self.auth_state["code"] = params["code"][0]
KeyError: 'code'
ERROR:asyncio:Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x734c76b0>
ERROR:asyncio:Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x734ce068>, 5497252.017260205)]']
connector: <aiohttp.connector.TCPConnector object at 0x734c75f0>

What could be the problem? Logging in via the website works

from pyporscheconnectapi.

MarkusGH avatar MarkusGH commented on August 23, 2024

As written above a captcha is a common problem.
Sometimes you have to log on/off multiple times from the same IP until no captcha is shown.

from pyporscheconnectapi.

Dual01 avatar Dual01 commented on August 23, 2024

ah ok, got it. Thanks

from pyporscheconnectapi.

Dual01 avatar Dual01 commented on August 23, 2024

The problem is that even after several log on/offs, it works for several hours and then I am asked again for a captcha and I get the message: keyerror: code.

from pyporscheconnectapi.

fredriklj avatar fredriklj commented on August 23, 2024

Duplicate of #37

from pyporscheconnectapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.