core icon indicating copy to clipboard operation
core copied to clipboard

Sense API Errors

Open MidnightLink opened this issue 1 year ago • 32 comments

The problem

Random error 500's are happening multiple times a day. Started about last week. Just cleared the log a few hours beforehand and it happened again

What version of Home Assistant Core has the issue?

core-2023.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Sense

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.sense
Source: helpers/update_coordinator.py:290
Integration: Sense (documentation, issues)
First occurred: 9:55:28 PM (1 occurrences)
Last logged: 9:55:28 PM

Unexpected error fetching Sense Trends **REDACTED** data: API Return Code: 500
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 246, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sense/__init__.py", line 107, in _async_update_trend
    await gateway.update_trend_data()
  File "/usr/local/lib/python3.11/site-packages/sense_energy/asyncsenseable.py", line 233, in update_trend_data
    await self.get_trend_data(scale, dt)
  File "/usr/local/lib/python3.11/site-packages/sense_energy/asyncsenseable.py", line 227, in get_trend_data
    self._trend_data[scale] = await json
                              ^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/sense_energy/asyncsenseable.py", line 209, in _api_call
    raise SenseAPIException(f"API Return Code: {resp.status}")
sense_energy.sense_exceptions.SenseAPIException: API Return Code: 500

Additional information

No response

MidnightLink avatar Nov 25 '23 03:11 MidnightLink