Comments (4)
Hi!
Unfortunately, I cannot reproduce this error. Moreover, it looks like there is no info in the Meross APP about the API status code 20101, it must be some sort of internal/undocumented state provided by the HTTP API.
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?
from merossiot.
I have same issue.
- Python 3.10.6
- meross_iot 0.4.5.9
- MSS110 (x2)
- OS Ubuntu
I run code on README.md, change from mss310 to mss110.
and, set email and pass.
/file/pub/list.py:51: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
ERROR:Could not parse error code 20101.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/meross_iot/http_api.py", line 294, in _async_authenticated_post
error = ErrorCodes(code)
File "/usr/lib/python3.10/enum.py", line 385, in call
return cls.new(cls, value)
File "/usr/lib/python3.10/enum.py", line 710, 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 "/file/pub/list.py", line 52, in
loop.run_until_complete(main())
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/file/pub/list.py", line 13, in main
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
File "/usr/local/lib/python3.10/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.10/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.10/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': 1677860545, 'data': {}}
from merossiot.
I resolved this issue.
I had missed set email and pass.
[before]
'MEROSS_EMAIL'
'MEROSS_PASSWORD'
[after]
"YOUR_MEROSS_CLOUD_EMAIL"
"YOUR_MEROSS_CLOUD_PASSWORD"
from merossiot.
Glad you solved it!
from merossiot.
Related Issues (20)
- MST960 reading current values is not possible HOT 3
- Meross changing the cloud api from 2024-01-01 HOT 4
- Logout fail HOT 1
- Meross Cloud API changed begining of January 2024 HOT 2
- Log entries HOT 10
- TypeError: async_from_user_password() missing 1 required positional argument: 'api_base_url'
- Is merossiot no longer working? HOT 4
- MerossManager._update_and_send_push' was never awaited HOT 5
- Incompatible with paho-mqtt 2.0 HOT 2
- hourly consumption MSS310 HOT 6
- https://iotx-eu.meross.com returns error 404 HOT 8
- Meross architecture clarification - recording electricity consumption HOT 2
- Operation of multiple MSS110 smart plugs HOT 4
- cannot reuse already awaited coroutine HOT 14
- MSH300HK/MS100F are not supported HOT 5
- Incorporating Meross-iot into a broader application HOT 1
- MerossIOT Java implementation support request HOT 1
- MSS810 is not supported
- KeyError: 'mfaLockExpire' HOT 14
- Error: Exception caught: You have issued too many tokens without logging out and your account might have been temporarly disabled. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from merossiot.