DeebotUniverse / client.py

Deebot client library in python
https://deebot.readthedocs.io
GNU General Public License v3.0
27 stars 41 forks source link

Could not handle getError message: {'code': []} #501

Closed Ulfmerbold2000 closed 3 months ago

Ulfmerbold2000 commented 3 months ago

Checks

The problem

Following message is in the log:

Could not handle getError message: {'code': []}

I've lookied into the code and found under commands the corresponding error.py. Looked fine so far, so i have no real clue why this message comes up.

I cant really find any difference from the log-body to the error.py.... codes = data.get("code", []) Should work, or not?

Means that there is an event.py under messages or events needed? Or is something changed in the code of the ecovacs servers?

On which deebot device (vacuum) you have the issue?

Deebot X2 Omni

Which version of the deebot-client are you using?

7.2.0

Country

de

Continent

eu

Anything in the logs that might be useful for us?

2024-05-15 11:55:23.503 DEBUG (MainThread) [deebot_client.authentication] Success calling api url=https://portal-eu.ecouser.net/api/iot/devmanager.do, params={'mid': 'lf3bn4', 'did': '310b014d-e138-4268-b4f2-eea7bc4bebfa', 'td': 'q', 'u': 'idqmao8ec939fa29', 'cv': '1.67.3', 't': 'a', 'av': '1.3.1'}, json={'cmdName': 'getError', 'payload': {'header': {'pri': '1', 'ts': 1715766923.425819, 'tzm': 480, 'ver': '0.0.50'}}, 'payloadType': 'j', 'td': 'q', 'toId': '310b014d-e138-4268-b4f2-eea7bc4bebfa', 'toRes': 'hOdT', 'toType': 'lf3bn4'}, response={'ret': 'ok', 'resp': {'header': {'pri': 1, 'tzm': 120, 'ts': '1715766923079', 'ver': '0.0.1', 'fwVer': '1.76.0', 'hwVer': '0.1.1', 'wkVer': '0.1.54'}, 'body': {'code': 0, 'data': {'code': []}, 'msg': 'ok'}}, 'id': 'LmAp', 'payloadType': 'j'}
2024-05-15 11:55:23.504 DEBUG (MainThread) [deebot_client.message] Could not handle getError message: {'code': []}

Additional information

No response