Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

[Bug]: unable to sign in, "unexpected error" #23

Description

@raphus

What happened ?

Trying to add integration, but only getting this error
Image

Thank you!

Relevant log output

This error originated from a custom integration.

Logger: custom_components.petlibro.config_flow
Source: custom_components/petlibro/config_flow.py:97
integration: PETLIBRO (documentation)
First occurred: 10:13:05 AM (5 occurrences)
Last logged: 10:26:55 AM

Unexpected exception: Code: 1101, Message: MEMBER_NOT_EXIST
Traceback (most recent call last):
  File "/config/custom_components/petlibro/config_flow.py", line 97, in _validate_input
    self.token = await api.login(data[CONF_EMAIL], data[CONF_PASSWORD])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/petlibro/api.py", line 123, in login
    data = await self.session.post("/member/auth/login", json={
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<10 lines>...
    })
    ^^
  File "/config/custom_components/petlibro/api.py", line 77, in post
    return await self.request("POST", path, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/petlibro/api.py", line 71, in request
    raise PetLibroAPIError(f"Code: {data.get('code')}, Message: {data.get('msg')}")
custom_components.petlibro.exceptions.PetLibroAPIError: Code: 1101, Message: MEMBER_NOT_EXIST

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingTriage

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions