Skip to content

Unexpected NoneType in psa_client.py #1140

@MaStr

Description

@MaStr

Describe the bug
psa-car-controller stopped working. Even after upgrading to 3.6 error persists during login.

psa-car-controller_1     | 2025-11-05 07:57:31,817 :: INFO :: 192.168.56.227 - - [05/Nov/2025 07:57:31] "POST /_dash-update-component HTTP/1.1" 204 -
psa-car-controller_1     | 2025-11-05 08:00:13,060 :: INFO :: save config change
psa-car-controller_1     | 2025-11-05 08:00:25,520 :: ERROR :: finish_oauth:
psa-car-controller_1     | Traceback (most recent call last):
psa-car-controller_1     |   File "/usr/local/lib/python3.11/dist-packages/psa_car_controller/web/view/config_oauth.py", line 56, in finish_oauth
psa-car-controller_1     |     config_views.INITIAL_SETUP.connect(code)
psa-car-controller_1     |   File "/usr/local/lib/python3.11/dist-packages/psa_car_controller/psa/setup/app_decoder.py", line 119, in connect
psa-car-controller_1     |     res = self.psacc.get_vehicles()
psa-car-controller_1     |           ^^^^^^^^^^^^^^^^^^^^^^^^^
psa-car-controller_1     |   File "/usr/local/lib/python3.11/dist-packages/psa_car_controller/psacc/application/psa_client.py", line 142, in get_vehicles
psa-car-controller_1     |     for vehicle in res.embedded.vehicles:
psa-car-controller_1     |                    ^^^^^^^^^^^^
psa-car-controller_1     | AttributeError: 'NoneType' object has no attribute 'embedded'

To Reproduce
Steps to reproduce the behavior:

  1. Install Service
  2. Do Login and OTP Procedure

Config file

config.json

{
    "abrp": {
        "abrp_enable_vin": [],
        "token": ""
    },
    "client_id": "xxxxxx",
    "client_secret": "xxxxxxx",
    "co2_signal_api": null,
    "country_code": "DE",
    "customer_id": "OP-ACNT200001111111",
    "proxies": {
        "http": "",
        "https": ""
    },
    "realm": "clientsB2COpel",
    "refresh_token": "xxxx-xxxx-xx-xxx-xxxxx",
    "remote_refresh_token": null,
    "weather_api": null
}

Environment (please complete the following information):

  • OS: docker , arm64, image: flobz/psa_car_controller:v3.6
  • Open Corsa
  • 3.6

Additional context
Seems to started after this night.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions