Comments (11)
Same problem for me...
from pyporscheconnectapi.
Try to login via web browser and solve the captcha.
Also car going to privacy mode gives problems (check in porsche app).
from pyporscheconnectapi.
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.
Log out/in again until no captcha is shown.
from pyporscheconnectapi.
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.
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.
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.
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.
ah ok, got it. Thanks
from pyporscheconnectapi.
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.
Duplicate of #37
from pyporscheconnectapi.
Related Issues (20)
- AttributeError: 'Namespace' object has no attribute 'vin' HOT 2
- Thank you! HOT 1
- porschecli: error: argument command: invalid choice - not working HOT 2
- API not working anymore - problem of Porsche servers? HOT 1
- Not working anymore: Error: wasExpired=(token is not None) HOT 4
- New authentication scheme HOT 2
- tuple index out of range
- Token refresh? HOT 3
- KeyError: 'message' HOT 3
- KeyError: 'Location' HOT 2
- Error: Invalid captcha value HOT 4
- Sending navigation to PCM HOT 2
- Anyone else seeing issues in past 24 hours+ HOT 6
- API broken again? HOT 3
- Car in privacy mode gives error
- Error while trying to get "getEmobility" conn {'pcckErrorKey': 'GRAY_SLICE_ERROR_UNKNOWN_MSG', 'pcckErrorMessage': None, 'pcckErrorCode': None, 'pcckIsBusinessError': True} HOT 8
- Cannot load data HOT 1
- {Q} Time between requests without captcha getting activated HOT 2
- Cannot activate integration because of required Captcha HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyporscheconnectapi.