-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR:Could not parse error code 20101 #265
Comments
Hi! What devices do you own? Can we test someting different, such as a MSS310 or MSS210 smart plugs, which are simpler and do not involve the usage of a HUB? |
I have same issue.
I run code on README.md, change from mss310 to mss110. /file/pub/list.py:51: DeprecationWarning: There is no current event loop During handling of the above exception, another exception occurred: Traceback (most recent call last): |
I resolved this issue. [before] [after] |
Glad you solved it! |
I have python 3.9.2 and meross-iot 0.4.5.0. On running any of the examples eg valve.py I get the following errors. I have double checked my login details are correct.
pi@raspberrypi:~ $ sudo python valve.py
ERROR:Could not parse error code 20101.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/meross_iot/http_api.py", line 294, in _async_authenticated_post
error = ErrorCodes(code)
File "/usr/lib/python3.9/enum.py", line 360, in call
return cls.new(cls, value)
File "/usr/lib/python3.9/enum.py", line 677, in new
raise ve_exc
ValueError: 20101 is not a valid ErrorCodes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/valve.py", line 59, in
loop.run_until_complete(main())
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/pi/valve.py", line 14, in main
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
File "/usr/local/lib/python3.9/dist-packages/meross_iot/http_api.py", line 106, in async_from_user_password
creds = await cls.async_login(email=email,
File "/usr/local/lib/python3.9/dist-packages/meross_iot/http_api.py", line 203, in async_login
response_data = await MerossHttpClient._async_authenticated_post(url=url,
File "/usr/local/lib/python3.9/dist-packages/meross_iot/http_api.py", line 296, in _async_authenticated_post
raise AuthenticatedPostException(f"Unknown/Unhandled response code received from API. "
meross_iot.model.http.exception.AuthenticatedPostException: Unknown/Unhandled response code received from API. Response was: {'apiStatus': 20101, 'sysStatus': 0, 'info': '', 'timeStamp': 1670167413, 'data': {}}
The text was updated successfully, but these errors were encountered: