Code 495: Invalid or expired client certificate
Describe the bug After submitting the user config, the error "Invalid or expired client certificate" with code 495 comes up.
Config file Default config, fresh install
[General]
currency = €
# define format for data export, can be csv or xlsx
export_format = csv
# minimum trip length in km so it's added to stats and map in website
minimum trip length = 10
# for future use
length unit = km
export format = csv
[Electricity config]
# price by kw/h
day price = 0.15
night price
# ex: 22h30
night hour start
# ex: 6h00
night hour end
dc charge price
high speed dc charge price
# minimum power in kW that should be delivered during a charge so it can be considered as a high speed charger
high speed dc charge threshold
charger efficiency = 0.8942
Environment (please complete the following information):
- OS: Docker on Debian and HA addon
- Brand and model of car: Citroen C3 2019
- Application version (commit number, branch or tag): v3.5.6
- Log from http://server_address:port/log and browser console log
psacc | Traceback (most recent call last):
psacc | File "/usr/local/lib/python3.11/dist-packages/psa_car_controller/web/view/config_views.py", line 137, in connectPSA
psacc | INITIAL_SETUP = InitialSetup(app_name, email, password, countrycode)
psacc | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
psacc | File "/usr/local/lib/python3.11/dist-packages/psa_car_controller/psa/setup/app_decoder.py", line 76, in __init__
psacc | self.user_info = self.__fetch_user_info()
psacc | ^^^^^^^^^^^^^^^^^^^^^^^^
psacc | File "/usr/local/lib/python3.11/dist-packages/psa_car_controller/psa/setup/app_decoder.py", line 113, in __fetch_user_info
psacc | raise ConnectionError(msg) from ex
psacc | ConnectionError: Traceback (most recent call last):
psacc | File "/usr/local/lib/python3.11/dist-packages/psa_car_controller/psa/setup/app_decoder.py", line 105, in __fetch_user_info
psacc | res_dict = res2.json()["success"]
psacc | ~~~~~~~~~~~^^^^^^^^^^^
psacc | KeyError: 'success'
psacc | {"code":"495", "message": "Invalid or expired client certificate"}
Additional context
Related issues: #938, #618
Same error here, but i try login in Peugeot.
Same here
Pareil ici
same error here, tried this for the first time 5min ago
same here.
Same here :(
same here with opel since yesterday
https://github.com/flobz/psa_car_controller/issues/938#issuecomment-2322860235
This helped me to temporarily work around the issue (even though at the end of the login process it can't find my car/says probably too old, guess its time for the firmware update eventually... opel corsa e)
- Download xapg from https://apkcombo.com/ (e.g. myopel, mypeugeot etc.)
- unzip xapk
- replace existing .apk with the extracted
- restart
same here in Italy with peugeot login :-(
@flobz isn't this as simple as updating https://github.com/flobz/psa_apk/blob/main/mypeugeot.apk.bz2 ?
same in italy with citroen
This helped me to temporarily work around the issue (even though at the end of the login process it can't find my car/says probably too old, guess its time for the firmware update eventually... opel corsa e)
1. Download xapg from https://apkcombo.com/ (e.g. myopel, mypeugeot etc.) 2. unzip xapk 3. replace existing .apk with the extracted 4. restart
Can confirm this works. Be sure to use the base.apk package.
Perhaps a more permanent solution would be to dynamically fetch the newest APK from a source like APKcombo, if possible.
#938 (comment) This helped me to temporarily work around the issue (even though at the end of the login process it can't find my car/says probably too old, guess its time for the firmware update eventually... opel corsa e)
1. Download xapg from https://apkcombo.com/ (e.g. myopel, mypeugeot etc.) 2. unzip xapk 3. replace existing .apk with the extracted 4. restartCan confirm this works. Be sure to use the base.apk package.
Perhaps a more permanent solution would be to dynamically fetch the newest APK from a source like APKcombo, if possible.
but for what type of deployment is this solution? where are you running PSA Car Controller?
I'm running it in docker, but that should not really matter
I'm running it in docker, but that should not really matter
can you explain it in a bit more detail? where is the apk located so that i can replace it with the new version downloaded from apkcombo?
I'm not sure about other setups, but with the Docker setup, the APK i located in the folder with all the config files.
I'm not sure about other setups, but with the Docker setup, the APK i located in the folder with all the config files.
so you just copy the apk to inside the container?
The issue should be fixed ! 😄
The issue should be fixed ! 😄
Nice, I was able to login but there's no trip data, any ideas of what might be?
I was able to login as well, but when pressing 'Send SMS' and seeing the 'SMS Sent' notification I am not actually receiving the SMS.
Edit: The above doesn't seem to be an issue as the PSA-CC dashboard does seem to get some data. I am however getting a 404 - Vehicle not found error, and the /get_vehicleinfo/VIN is throwing an HTTP 500 Internal server error
For future reference and for other users experiencing the same:
Apparently this is a known issue that can occur and is described in the FAQ.
@flobz The description of point 2 does not reflect all scenarios as I never had the errors as displayed in the FAQ and the resolution of point 5 did not resolve my problem with receiving an SMS. Could you please update the FAQ to cover my scenario? Much appreciated!
@fseverijnen you can create a PR with the FAQ updated :)