Traceback after filling out SMS code, plus {'err': 'NOK:SN'}
Not in the FAQ
Describe the bug
After filling out the OAuth code, on the OTP page I request the SMS code, which I receive. However, after filling it out, I get {'err': 'NOK:SN'} in the GUI, plus a traceback.
2026-04-27 19:32:22,111 :: ERROR :: finishOtp:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/psa_car_controller/web/view/config_views.py", line 174, in finishOtp
otp_session = new_otp_session(sms_code, code_pin, app.myp.remote_client.otp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/psa_car_controller/psa/otp/otp.py", line 337, in new_otp_session
if otp.activation_start():
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/psa_car_controller/psa/otp/otp.py", line 194, in activation_start
raise ConfigException(xml)
psa_car_controller.psa.otp.otp.ConfigException: {'err': 'NOK:SN'}
2026-04-27 19:32:22,112 :: INFO :: 172.17.0.1 - - [27/Apr/2026 19:32:22] "POST /_dash-update-component HTTP/1.1" 200 -
To Reproduce Steps to reproduce the behavior:
- what command did you use. => See above
- when the bug append ? => "Append"? Or "happen"? See above.
- Does it persist after restarting the program? => Yes
- Does it persist after recreate config by going to http://server_address:port/config? Config file Give the anonymize content of the config file
Environment (please complete the following information):
- OS: [e.g. Windows] => Docker, in Linux
- Brand and model of car. => Peugeot e208
- Application version (commit number, branch or tag) => App version 3.6.3
- Log from http://server_address:port/log and browser console log => See traceback aboven
Additional context Add any other context about the problem here.
Could be a issue on Stellentis side since this error is a response from the API, their servers are notoriously unstable... try again after a while.
If you get the same error, you might want to check if you remote services are active, you need the services activated for PAS car controller to work.
Thanks.
Mabye catch the exception, and print some info like "This went wrong on Stellantis server side. Try again?"? Or let psa_car_controller try again if it's a Stellantis API problem?