-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Can't refresh remote token" and "RateLimitException" visible in log and not able to start/stop charging or refresh status #967
Comments
Same issue here |
Same here, started about 1.5 months ago.. |
Problem solved with de- and reinstalling PSA_car_controller |
Tried it and didnt help, check your logs. It works about half the time, the other half it isnt and you have RateLimit in the log. |
I also tried reinstalling whole addon in HA, and right after installation and whole OTP process same issue is present. |
my guess is Stelantis servers are limiting us, because the addon makes too many connections to them every day. I know the addon uses local cache so it doesnt query the server every few minutes, but it seems like its still too often, maybe Stelantis reduced the daily limit recently? |
I did also de- and reinstall the official phone app and let it connect to te car, before reinstalling PSA controller. I checked the logs; no errors en it works fine... I dont know why it works, but it does! |
For me no change after removing or reinstalling MyPeugeot app. |
2024-10-23 18:16:51,103 :: INFO :: ask wakeup to My_VIN 2024-10-23 18:16:51,103 :: INFO :: topic: psa/RemoteServices/from/cid/OV-ACNT200008538854/VehCharge/state: {'action': 'state'} 2024-10-23 18:16:51,578 :: INFO :: 10.0.0.252 - - [23/Oct/2024 18:16:51] "GET /wakeup/My_VIN HTTP/1.1" 200 - 2024-10-23 18:16:51,807 :: INFO :: mqtt msg received: psa/RemoteServices/to/cid/OV-ACNT200008538854/VehCharge/state/ProcessManagement b'{"process_date":"2024-10-23T18:16:51Z","vin":"My_VIN","correlation_id":"605c001296584d9188654db8cc23686c20241023181651577","process_code":"900","process_message":"[process.900.request.accepted.key]"}' 2024-10-23 18:16:51,946 :: INFO :: mqtt msg received: psa/RemoteServices/to/cid/OV-ACNT200008538854/VehCharge/state/ProcessManagement b'{"process_date":"2024-10-23T18:16:51Z","vin":"My_VIN","correlation_id":"605c001296584d9188654db8cc23686c20241023181651577","process_code":"901","process_message":"[process.901.vehicle.asleep.key]"}' 2024-10-23 18:16:52,364 :: INFO :: save config change 2024-10-23 18:17:10,236 :: INFO :: mqtt msg received: psa/RemoteServices/to/cid/OV-ACNT200008538854/VehCharge/state/ProcessManagement b'{"process_date":"2024-10-23T18:17:10Z","vin":"My_VIN","correlation_id":"605c001296584d9188654db8cc23686c20241023181651577","process_code":"903","process_message":"[process.903.request.forwarded.to.vehicle.key]"}' 2024-10-23 18:17:10,461 :: INFO :: mqtt msg received: psa/RemoteServices/to/cid/OV-ACNT200008538854/VehCharge/state b'{"resp_date":"2024-10-23T18:17:10Z","vin":"My_VIN","correlation_id":"605c001296584d9188654db8cc23686c20241023181651577","return_code":"0"}' |
It seems that it started to work again from last Sunday evenig. No change from my side in psacc or MyPeugeot android app. I see from time to time "please redo OTP" in logs but it is sporadic and code 401 visible before that error
So at least for now we can consider that it is working again for me :) |
Today I remembered that I did one more thing over the weekend, I performed system reset in my Peugeot 308 (to factory settings in menu). It was done because my Tomtom traffic services stoped to work (subsription has ended long time ago but it was still working ;) ) and I wanted to check it after reset. |
psa_car_controller.common.utils.RateLimitException i still keep getting these errors, a bunch of times per day. |
Also here the same Error, OTP was done twice but no change
|
I got the same issue, which causes the data from the car being out of date. My log:
|
I guess that it is an issue on the API Side, the App does also not working |
App for me is working fine but in psacc I see again those errors and all actions from psacc are not working (also status update during charging) |
For a quite long time start/stop charging, preconditioning and othere features are not working at all.
Im able to do those from android MyPeugeot app.
psacc is updating status if I perform update via MyPeugeot app so there is working connection with PSA server.
Today I even reinstalled psacc addon in HA but still with the same result.
Steps to reproduce the behavior:
Environment (please complete the following information):
2024-09-28 15:56:10,206 :: INFO :: ask wakeup to MyVIN 2024-09-28 15:56:10,207 :: INFO :: topic: psa/RemoteServices/from/cid/AP-ACNT200003476968/VehCharge/state: {'action': 'state'} 2024-09-28 15:56:10,207 :: ERROR :: Can't refresh remote token, please redo otp procedure Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/RemoteClient.py", line 157, in _refresh_remote_token self.manager.refresh_token_now() File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/common/utils.py", line 23, in wrapper raise RateLimitException psa_car_controller.common.utils.RateLimitException 2024-09-28 15:56:10,208 :: INFO :: 192.168.1.76 - - [28/Sep/2024 15:56:10] "GET /wakeup/MyVIN HTTP/1.1" 200 - 2024-09-28 15:56:10,247 :: INFO :: 192.168.1.76 - - [28/Sep/2024 15:56:10] "GET /favicon.ico HTTP/1.1" 200 - 2024-09-28 15:56:27,693 :: INFO :: <Request 'http://localhost:5000/charge_control?vin=MyVIN' [GET]> 2024-09-28 15:56:27,694 :: INFO :: save config change 2024-09-28 15:56:27,695 :: INFO :: 172.30.32.1 - - [28/Sep/2024 15:56:27] "GET /charge_control?vin=MyVIN HTTP/1.1" 200 - 2024-09-28 15:56:27,697 :: INFO :: 172.30.32.1 - - [28/Sep/2024 15:56:27] "GET /get_vehicleinfo/MyVIN?from_cache=1 HTTP/1.1" 200 - 2024-09-28 15:56:44,406 :: INFO :: Preconditioning: topic: psa/RemoteServices/from/cid/AP-ACNT200003476968/ThermalPrecond: {'asap': 'activate', 'programs': {'program1': {'day': [0, 0, 0, 0, 0, 0, 0], 'hour': 34, 'minute': 7, 'on': 0}, 'program2': {'day': [0, 0, 0, 0, 0, 0, 0], 'hour': 34, 'minute': 7, 'on': 0}, 'program3': {'day': [0, 0, 0, 0, 0, 0, 0], 'hour': 34, 'minute': 7, 'on': 0}, 'program4': {'day': [0, 0, 0, 0, 0, 0, 0], 'hour': 34, 'minute': 7, 'on': 0}}} 2024-09-28 15:56:44,407 :: ERROR :: Can't refresh remote token, please redo otp procedure Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/RemoteClient.py", line 157, in _refresh_remote_token self.manager.refresh_token_now() File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/common/utils.py", line 23, in wrapper raise RateLimitException psa_car_controller.common.utils.RateLimitException 2024-09-28 15:56:44,408 :: INFO :: 172.30.32.1 - - [28/Sep/2024 15:56:44] "GET /preconditioning/MyVIN/1 HTTP/1.1" 200 -
The text was updated successfully, but these errors were encountered: