home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.6k stars 29.92k forks source link

LitterRobot integration error #56716

Closed sliwma closed 2 years ago

sliwma commented 2 years ago

The problem

LitterRobot integration stopped working.

What is version of Home Assistant Core has the issue?

core-2021.9.7

What was the last working version of Home Assistant Core?

core-2021.9.7

What type of installation are you running?

Home Assistant OS

Integration causing the issue

LitterRobot

Link to integration documentation on our website

https://www.home-assistant.io/integrations/litterrobot/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: components/litterrobot/hub.py:46
First occurred: 20:37:43 (1 occurrences)
Last logged: 20:37:43

Error setting up entry <mail> for litterrobot
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pylitterbot/session.py", line 106, in call
    response.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/httpx/_models.py", line 1426, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: 500 Server Error: Internal Server Error for url: https://v2.api.whisker.iothings.site/users
For more information check: https://httpstatuses.com/500

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/litterrobot/__init__.py", line 20, in async_setup_entry
    await hub.login(load_robots=True)
  File "/usr/src/homeassistant/homeassistant/components/litterrobot/hub.py", line 46, in login
    await self.account.connect(
  File "/usr/local/lib/python3.9/site-packages/pylitterbot/account.py", line 51, in connect
    await self.refresh_user()
  File "/usr/local/lib/python3.9/site-packages/pylitterbot/account.py", line 67, in refresh_user
    self._user.update((await self._session.get("users")).json().get("user"))
  File "/usr/local/lib/python3.9/site-packages/pylitterbot/session.py", line 90, in get
    return await self.call(self._client.get, path, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/pylitterbot/session.py", line 111, in call
    f"{ex.response.json()['developerMessage']} sent to Litter-Robot"
KeyError: 'developerMessage'

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

litterrobot documentation litterrobot source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @natekspencer, mind taking a look at this issue as it has been labeled with an integration (litterrobot) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

natekspencer commented 2 years ago

@sliwma, the Litter-Robot API was having issues, but should be back now. If the integration is still showing unavailable, you can try to restart HA or disable/enable this integration to get it to re-authenticate and show up again.

sliwma commented 2 years ago

Affirmative, works now.