Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to setup API error #198

Closed
jbob101 opened this issue Jan 19, 2025 · 19 comments
Closed

Unable to setup API error #198

jbob101 opened this issue Jan 19, 2025 · 19 comments

Comments

@jbob101
Copy link

jbob101 commented Jan 19, 2025

This morning the integration failed to load. Is this an error with the integration of connectlife itself?

Image

@justme871
Copy link

Same here

@alexdenton123
Copy link

Same its happening for me

@zedr32
Copy link

zedr32 commented Jan 19, 2025

Same here unfortunatly

@illigtr
Copy link

illigtr commented Jan 19, 2025

This started for me too today. Same error message. Attempted a re-download from HACS. Attempted rebuild. Attempted HA services restart. Attempted HA Host reboot. Deleted integration and re-created hub. ALL FAILED, same error.

Checking the log shows this:
```Server error: GET https://connectlife.bapi.ovh/appliances resulted in a `500 Internal Server Error` response:

If one uses a browser to go to that address, one get this:

Image

@leandroalbero
Copy link

I wish we could talk directly to the devices, clouds kinda suck

@jbob101
Copy link
Author

jbob101 commented Jan 20, 2025

This started for me too today. Same error message. Attempted a re-download from HACS. Attempted rebuild. Attempted HA services restart. Attempted HA Host reboot. Deleted integration and re-created hub. ALL FAILED, same error.

Checking the log shows this: ```Server error: GET https://connectlife.bapi.ovh/appliances resulted in a `500 Internal Server Error` response:

If one uses a browser to go to that address, one get this:

Image

Interesting, your logs are different to mine, see below,
2025-01-20 08:25:00.119 WARNING (MainThread) [custom_components.connectlife.coordinator] ConnectLife API failed with 'Unexpected response: status=500', will try 2 more times
2025-01-20 08:26:00.636 WARNING (MainThread) [custom_components.connectlife.coordinator] ConnectLife API failed with 'Unexpected response: status=500', will try 1 more time

@dwlynch055
Copy link

same here. All down today

@exnewbieex
Copy link

Same here. Down for me since today morning

@c3hic
Copy link

c3hic commented Jan 20, 2025

Same here.

@catalynv
Copy link

All it's running back...

@jbob101 jbob101 closed this as completed Jan 20, 2025
@leandroalbero
Copy link

Not for me, anyone else?

@justme871
Copy link

Still doesn't work. Same error

@porcodeucan
Copy link

still not working.
Here's the log:


Error setting up entry ConnectLife (*********il.com) for connectlife
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectlife/init.py", line 40, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 306, in async_config_entry_first_refresh
await self._async_refresh(
log_failures=False, raise_on_auth_failed=True, raise_on_entry_error=True
)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectlife/coordinator.py", line 43, in _async_update_data
await self.api.get_appliances()
File "/usr/local/lib/python3.13/site-packages/connectlife/api.py", line 70, in get_appliances
appliances = await self.get_appliances_json()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/connectlife/api.py", line 78, in get_appliances_json
async with session.get(self.appliances_url, headers={
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"User-Agent": "connectlife-api-connector 2.1.4",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"X-Token": self._access_token
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}) as response:
^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 1423, in aenter
self._resp: _RetType = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 728, in _request
await resp.start(conn)
File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1055, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/streams.py", line 668, in read
await self._waiter
asyncio.exceptions.CancelledError

@catalynv
Copy link

Yes, it's down again. 🙄

@leandroalbero
Copy link

It did work for a moment, according to statistics in hass

@cronjevh
Copy link

Mine is back now - I also had the Error 500, which then later changed to a more generic errors on the Custom Integration Page.

I did try to uninstall/reinstall the Integration as I thought something happened with the login token, still got the same error. I then restored my 3am backup for this morning ( as I didn't want to set up automations/helpers again ) - and everything worked fine after it started up again.

Either:

  1. The problem was solved from the ConnectLife API side coincidentally on my backup restore
  2. Whatever troubleshooting restarts and reloads I tried while the service was down, caused the integration to be in a bad state - and restoring the backup helped. YMMV

@porcodeucan
Copy link

looks like it's working again - no action required, just refreshing the dashboard. please check and report you all
thanks!

@catalynv
Copy link

Not sure if this is an integration problem or a server problem. In this moment it's working, but some time it's giving this error.

Registratore: custom_components.connectlife.coordinator
Fonte: custom_components/connectlife/coordinator.py:64
Integrazione: ConnectLife (documentazione, problemi)
Prima occorrenza: 11:25:13 (1 occorrenze)
Ultimo accesso: 11:25:13

ConnectLife API failed with 'Unexpected response: status=500', will try 2 more times

@oyvindwe
Copy link
Owner

This is a problem with the API. Except from improving the error handling a bit, not much to do about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests