Skip to content

Failed to execute api call GET /message/list, was expecting a result of type <class 'saic_ismart_client_ng.api.message.schema.MessageResp'> got None instead #321

@OleksandrChekmez

Description

@OleksandrChekmez

Fresh install of the latest release 0.9.0-rc7

Configured everything, it started and loaded my MG 4 EV data to MQTT, but then I see infine list of such errors:

2025-05-11 11:46:27,912 [ERROR]: Error while fetching a message from the SAIC API, please open the app and clear them, then report this as a bug. - handlers.message
Traceback (most recent call last):
File "/usr/src/app/handlers/message.py", line 91, in __get_all_alarm_messages
message_list = await self.saicapi.get_alarm_list(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/.venv/lib/python3.12/site-packages/saic_ismart_client_ng/api/message/init.py", line 21, in get_alarm_list
return await self.get_message_list(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/.venv/lib/python3.12/site-packages/saic_ismart_client_ng/api/message/init.py", line 42, in get_message_list
return await self.execute_api_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/.venv/lib/python3.12/site-packages/saic_ismart_client_ng/api/base.py", line 121, in execute_api_call
raise SaicApiException(msg)
saic_ismart_client_ng.exceptions.SaicApiException: Failed to execute api call GET /message/list, was expecting a result of type <class 'saic_ismart_client_ng.api.message.schema.MessageResp'> got None instead

I tried to use my primary iSmart account and secondary account. The same problem appears. I opened iSmart and cleared all messages there and then restarted the add-on in HA. It didn`t help

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions