500 Error - Server Got itself in trouble - Life360

:man_shrugging:
Idk just found it

I don’t have the life360 integration but did some reading, sounds like life 360 may have made a breaking change to the api endpoint that required a change for HA to work properly. I expect this will be in the next release, for those who can’t wait it looks like some have successfully done this.

Update integration.

Repo link for quick finding for others

Thank you:)

1 Like

Unless you want to wait, the fix is to download the folder on the GitHub link above, unzip it, and move just the Life360 folder to your main home assistant config folder (where your configuration.yaml file is located). Restart home assistant and it will work again.

2 Likes

I already deleted the thing can I make a folder called life360 and then put it in there, restart it, and then proceed to Set up life360 as usual? Or nah?

Yes, just copy the life360 folder (and its contents) to your config folder. Reboot and setup like normal.

1 Like

Okey-dokey. I’ll try in a bit. Thank you:)

Life360 changed its API. HA 2023.8.0b3 should get things working again.

I can confirm this fix (workaround?) works. Not sure what I do with the folder now, assume I just keep it there until the 2023.8 release is released.

I have the same issue, started around same time. Does Life360 still have issues? or did they change anything?
The Life360 app on my mobile works normal though, no report about anything not working properly…
edit: got it now reading through all the comments… will simply wait for the update to come

Without any changes applied to my instance of HA, integration started to work again - after restart of HA all error messages are gone and device trackers are working again. Probably they fixed the problem on their side.

Same here. A reboot of HA seems to have fixed mine as well.

Guys, the problem is back. Even with the correction the problem reappeared, the same error 500.

Life360 is working even it appears to reconfigure and when clicked to reconfigure it shows the same error 500.

Log:

Logger: aiohttp.server
Source: components/life360/config_flow.py:140
First occurred: 18:45:47 (2 occurrences)
Last logged: 18:48:09

Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py”, line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py”, line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py”, line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/forwarded.py”, line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 172, in get
return await super().get(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py”, line 96, in get
result = await self._flow_mgr.async_configure(flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 296, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 392, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/life360/config_flow.py”, line 140, in async_step_reauth_confirm
self._password = user_input[CONF_PASSWORD]
~~~~~~~~~~^^^^^^^^^^^^^^^
TypeError: ‘NoneType’ object is not subscriptable

Same. Problem returned.

1 Like

Same here, both with the previous manual fix applied, and with that removed. I came back here just to double check it wasnt just a me thing.

1 Like

Same here!

Same thing here…

I update to version 2023.8.3 but same error here

has everyone currently having the problem recently updated to the latest HA release?

I’m still on 2023.7.3 and mine is running fine.

Yes to latest release for me.