Skip to content

Error doing job: Task exception was never retrieved (None) #19

Description

@shtrom

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/auroraplus/coordinator.py:62
integration: Aurora+ (documentation, issues)
First occurred: 00:14:45 (12 occurrences)
Last logged: 11:14:45

2025-12-20 11:14:44.857 INFO (SyncWorker_20) [auroraplus] access_token refused, refreshing...
2025-12-20 11:14:44.857 DEBUG (SyncWorker_20) [auroraplus] refreshing access_token with RefreshToken cookie...
2025-12-20 11:14:44.934 WARNING (SyncWorker_20) [auroraplus] can't obtain RefreshToken cookie: 401 Client Error: Unauthorized for url: https://api.auroraenergy.com.au/api/identity/refreshToken
2025-12-20 11:14:45.006 ERROR (MainThread) [custom_components.auroraplus.coordinator] authentication failure on update
Traceback (most recent call last):
  File "/config/custom_components/auroraplus/coordinator.py", line 62, in _api_update
    await self._hass.async_add_executor_job(self._api.getcurrent)
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.13/site-packages/auroraplus/__init__.py", line 398, in getcurrent
    current = self._fetch(self.API_URL + "/customers/current")
  File "/usr/local/lib/python3.13/site-packages/auroraplus/__init__.py", line 474, in _fetch
    r.raise_for_status()
    ~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.auroraenergy.com.au/api/customers/current
2025-12-20 11:14:45.007 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/homeassistant_historical_sensor/sensor.py", line 443, in _async_historical_handle_update
    await self.async_update_historical()
  File "/config/custom_components/auroraplus/sensor.py", line 250, in async_update_historical
    await self._coordinator.async_update()
  File "/config/custom_components/auroraplus/coordinator.py", line 45, in async_update
    await self._api_update()
  File "/config/custom_components/auroraplus/coordinator.py", line 81, in _api_update
    raise e
  File "/config/custom_components/auroraplus/coordinator.py", line 62, in _api_update
    await self._hass.async_add_executor_job(self._api.getcurrent)
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.13/site-packages/auroraplus/__init__.py", line 398, in getcurrent
    current = self._fetch(self.API_URL + "/customers/current")
  File "/usr/local/lib/python3.13/site-packages/auroraplus/__init__.py", line 474, in _fetch
    r.raise_for_status()
    ~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.auroraenergy.com.au/api/customers/current

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions