-
After an HA reboot, the integration is failing. The logs showed some 502 errors and not to report. After a good while waiting and retrying, I called some Octopus API's directly and they seem ok (although I did get some 502's on their main website once). I deleted the entries under Octopus and attempted to re-add (reload and configure were failing). Now I can't add the account information at all. I'll paste the logs below. I'm at a loss 😢 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
2024-10-24 17:46:47.841 DEBUG (MainThread) [custom_components.octopus_energy.api_client] account: {'data': {'octoplusAccountInfo': {'isOctoplusEnrolled': True}, 'account': {'electricityAgreements': [REDACTED], 'agreements': [{'validFrom': '2021-09-25T23:00:00+00:00', 'validTo': '2023-03-31T23:00:00+00:00', 'tariff': {'productCode': 'REDACTED', 'tariffCode': 'REDACTED'}}, {'validFrom': '2023-03-31T23:00:00+00:00', 'validTo': None, 'tariff': {'productCode': 'REDACTED', 'tariffCode': 'REDACTED'}}]}}], 'gasAgreements': [REDACTED], 'agreements': [{'validFrom': '2021-09-25T23:00:00+00:00', 'validTo': '2023-03-31T23:00:00+00:00', 'tariff': {'tariffCode': 'REDACTED', 'productCode': 'REDACTED'}}, {'validFrom': '2023-03-31T23:00:00+00:00', 'validTo': None, 'tariff': {'tariffCode': 'REDACTED', 'productCode': 'REDACTED'}}]}}]}}}
2024-10-24 17:46:47.845 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session (None)
2024-10-24 17:46:47.846 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector (None)
2024-10-24 17:46:47.848 INFO (MainThread) [custom_components.octopus_energy] electricity_price_cap: None
2024-10-24 17:46:47.848 INFO (MainThread) [custom_components.octopus_energy] gas_price_cap: None
2024-10-24 17:46:47.848 DEBUG (MainThread) [custom_components.octopus_energy] Closing client...
2024-10-24 17:46:47.848 DEBUG (MainThread) [custom_components.octopus_energy] Client closed.
2024-10-24 17:47:07.905 WARNING (MainThread) [custom_components.octopus_energy.api_client] Failed to connect. Timeout of ClientTimeout(total=None, connect=None, sock_read=20, sock_connect=20, ceil_threshold=5) exceeded.
2024-10-24 17:47:07.906 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry REDACTED for octopus_energy
Traceback (most recent call last):
File "/config/custom_components/octopus_energy/api_client/__init__.py", line 655, in async_refresh_token
async with client.post(url, json=payload) as token_response:
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1355, in __aenter__
self._resp: _RetType = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 686, in _request
await resp.start(conn)
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1022, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 643, in read
await self._waiter
aiohttp.client_exceptions.SocketTimeoutError: Timeout on reading data from socket
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/octopus_energy/__init__.py", line 139, in async_setup_entry
await async_setup_dependencies(hass, config)
File "/config/custom_components/octopus_energy/__init__.py", line 288, in async_setup_dependencies
account_info = await client.async_get_account(config[CONFIG_ACCOUNT_ID])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/octopus_energy/api_client/__init__.py", line 763, in async_get_account
await self.async_refresh_token()
File "/config/custom_components/octopus_energy/api_client/__init__.py", line 669, in async_refresh_token
raise TimeoutException()
custom_components.octopus_energy.api_client.TimeoutException |
Beta Was this translation helpful? Give feedback.
-
Yeah I’m in the same boat so actually glad you’re seeing it too. Means it’s not just me! Guessing the octopus api isn’t responding right now so we’re seeing timeouts in the logs. |
Beta Was this translation helpful? Give feedback.
-
is anyone else still having trouble today? reloading and reloading and reloading....new APIs requested and added....still no luck. |
Beta Was this translation helpful? Give feedback.
I think its octopus, if you look in the app you can see some odd values like ready by NaN... and charge to add 0%