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
73.56k stars 30.74k forks source link

ERROR (MainThread) [pylitterbot.account] Unable to retrieve your robots: 403, message='Forbidden', url=URL('https://v2.api.whisker.iothings.site/users/XXXXXX/robots') #108264

Closed thenoid closed 9 months ago

thenoid commented 9 months ago

The problem

litter robot integration has stopped working. Receiving a 403 when it attempts to list the robots. Not sure if this is transient? them blocking 3rdparty stuff? thought it worth opening a bug report just in case.

What version of Home Assistant Core has the issue?

core-2024.1.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

litter robot

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

-01-17 14:18:27.749 ERROR (MainThread) [pylitterbot.account] Unable to retrieve your robots: 403, message='Forbidden', url=URL('https://v2.api.whisker.iothings.site/users/XXXXXX/robots')
2024-01-17 14:21:24.324 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://42nk7qrhdg.execute-api.us-east-1.amazonaws.com/prod/login
2024-01-17 14:21:27.253 DEBUG (MainThread) [pylitterbot.session] Received 200 response from https://42nk7qrhdg.execute-api.us-east-1.amazonaws.com/prod/login: {'token': '**REDACTED**'}
2024-01-17 14:21:27.253 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken
2024-01-17 14:21:27.490 DEBUG (MainThread) [pylitterbot.session] Received 200 response from https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken: {'kind': 'identitytoolkit#VerifyCustomTokenResponse', 'idToken': '**REDACTED**', 'refreshToken': '**REDACTED**', 'expiresIn': '3600', 'isNewUser': False}
2024-01-17 14:21:27.490 DEBUG (MainThread) [pylitterbot.session] Making GET request to https://v2.api.whisker.iothings.site/users/XXXXXX/robots
2024-01-17 14:21:27.491 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://lr4.iothings.site/graphql
2024-01-17 14:21:27.491 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://graphql.whisker.iothings.site/v1/graphql
2024-01-17 14:21:27.680 ERROR (MainThread) [pylitterbot.account] Unable to retrieve your robots: 403, message='Forbidden', url=URL('https://v2.api.whisker.iothings.site/users/XXXXXX/robots')
2024-01-17 14:21:27.905 DEBUG (MainThread) [pylitterbot.session] Received 200 response from https://lr4.iothings.site/graphql: {'data': {'getLitterRobot4ByUser': [{'unitId': '**REDACTED**', 'name': 'bigger blacker box', 'serial': '**REDACTED**', 'userId': '**REDACTED**', 'espFirmware': '1.1.73', 'picFirmwareVersion': '10500.3072.2.87', 'picFirmwareVersionHex': '2904.C00.257 (Production)', 'laserBoardFirmwareVersion': '5.0.2.1', 'laserBoardFirmwareVersionHex': '5.0.21 (Production)', 'wifiRssi': -59.0, 'unitPowerType': 'AC', 'catWeight': 12.68, 'displayCode': 'DC_MODE_IDLE', 'unitTimezone': 'America/Denver', 'unitTime': None, 'cleanCycleWaitTime': 15, 'isKeypadLockout': False, 'nightLightMode': 'AUTO', 'nightLightBrightness': 100, 'isPanelSleepMode': False, 'panelSleepTime': 0, 'panelWakeTime': 0, 'weekdaySleepModeEnabled': {'Sunday': {'sleepTime': 0, 'wakeTime': 0, 'isEnabled': False}, 'Monday': {'sleepTime': 0, 'wakeTime': 0, 'isEnabled': False}, 'Tuesday': {'sleepTime': 0, 'wakeTime': 0, 'isEnabled': False}, 'Wednesday': {'sleepTime': 0, 'wakeTime': 0, 'isEnabled': False}, 'Thursday': {'sleepTime': 0, 'wakeTime': 0, 'isEnabled': False}, 'Friday': {'sleepTime': 0, 'wakeTime': 0, 'isEnabled': False}, 'Saturday': {'sleepTime': 0, 'wakeTime': 0, 'isEnabled': False}}, 'unitPowerStatus': 'ON', 'sleepStatus': 'WAKE', 'robotStatus': 'ROBOT_IDLE', 'globeMotorFaultStatus': 'FAULT_CLEAR', 'pinchStatus': 'CLEAR', 'catDetect': 'CAT_DETECT_CLEAR', 'isBonnetRemoved': False, 'isNightLightLEDOn': False, 'odometerPowerCycles': 42, 'odometerCleanCycles': 970, 'panelBrightnessHigh': 0, 'panelBrightnessLow': 0, 'smartWeightEnabled': True, 'odometerEmptyCycles': 1, 'odometerFilterCycles': 0, 'isDFIResetPending': False, 'DFINumberOfCycles': 1, 'DFILevelPercent': 15, 'isDFIFull': False, 'DFIFullCounter': 0, 'DFITriggerCount': 0, 'litterLevel': 439, 'DFILevelMM': 21, 'isCatDetectPending': False, 'globeMotorRetractFaultStatus': 'FAULT_CLEAR', 'robotCycleStatus': 'CYCLE_IDLE', 'robotCycleState': 'CYCLE_STATE_WAIT_ON', 'weightSensor': 2.9, 'isOnline': True, 'isOnboarded': True, 'isProvisioned': True, 'isDebugModeActive': False, 'lastSeen': '2024-01-17T07:13:43.384Z', 'sessionId': '**REDACTED**', 'setupDateTime': '2023-03-10T18:04:44.278Z', 'isFirmwareUpdateTriggered': False, 'firmwareUpdateStatus': 'PICTRIGGERED', 'wifiModeStatus': 'ROUTER_CONNECTED', 'isUSBPowerOn': True, 'USBFaultStatus': 'CLEAR', 'isDFIPartialFull': False, 'isLaserDirty': False}]}}
2024-01-17 14:21:27.925 DEBUG (MainThread) [pylitterbot.session] Received 200 response from https://graphql.whisker.iothings.site/v1/graphql: {'data': {'feeder_unit': []}}

Additional information

No response

home-assistant[bot] commented 9 months ago

Hey there @natekspencer, @tkdrob, 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!

Code owner commands Code owners of `litterrobot` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign litterrobot` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


litterrobot documentation litterrobot source (message by IssueLinks)

thenoid commented 9 months ago

NM, looks like some transient thing (though i did wait several hours before opening this bug) - just reloaded yet again and it's working.