Giter Site home page Giter Site logo

Comments (4)

albertogeniola avatar albertogeniola commented on August 28, 2024

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.

tourmaline3333 avatar tourmaline3333 commented on August 28, 2024

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.

tourmaline3333 avatar tourmaline3333 commented on August 28, 2024

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.

albertogeniola avatar albertogeniola commented on August 28, 2024

Glad you solved it!

from merossiot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.