ha-google-maps icon indicating copy to clipboard operation
ha-google-maps copied to clipboard

Reconfigure : Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble

Open 112-christian-112 opened this issue 11 months ago • 5 comments

After rebooting HA i get the following message:

Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble

How can I fix this issue?

112-christian-112 avatar Mar 19 '24 07:03 112-christian-112

What version of HA core are you using? What version of this integration are you using? How did you install this integration? Has it worked before and just started doing this, or have you gotten this error the first time you tried to install and use it?

pnbruckner avatar Mar 19 '24 10:03 pnbruckner

What version of HA core are you using? What version of this integration are you using? How did you install this integration? Has it worked before and just started doing this, or have you gotten this error the first time you tried to install and use it?

Core Version 2024.3.1, Integration Version 1.3.0. Installed via HACS. It has worked for maybe 4-6 hours and than stopped working.

112-christian-112 avatar Mar 20 '24 06:03 112-christian-112

You said it worked for 4-6 hours, stopped working, then caused the error mentioned above when you rebooted HA. Is that correct?

When you said it stopped working, what were the symptoms (before rebooting HA)? Errors? Repair issue? The entity or entities just stopped updating?

After the reboot, were there any other associated errors logged besides the config flow error mentioned?

I'm trying to get more details because I've never heard of this happening (i.e., the config flow error after restarting.) I do know that for some people the integration stops working after a short time. That is a known issue with this integration, mainly because it is using an undocumented & unsupported Google API. But there is some troubleshooting help in the latest doc version you can see here: https://github.com/pnbruckner/ha-google-maps#troubleshooting

pnbruckner avatar Mar 20 '24 15:03 pnbruckner

I can´t say clearly what happens first because I restarted Home Assistant a few times before i noticed that the integration stopped working. At the Moment HomeAssistant is running on Raspberry Pi 3 for testing purposes, because I switch my SmartHome from IOBroker to HomeAssistant Today my new Raspberry Pi 5 arrived and I will set up fresh Installation of HomeAssistant on Raspberry 5. I`ll try to reproduce the issue and let you know if it happens again

112-christian-112 avatar Mar 20 '24 19:03 112-christian-112

Its an auth error: Config entry '[email protected]' for google_maps integration could not authenticate: InvalidCookies: Invalid session indicated

Not sure why, I just exported my cookies a few weeks ago, but it works now. Dropped the original cookie file, restarted HA, integration asked again for the cookie, works like a charm.

Maybe look into why the re-auth doesnt work automatically. Hard to test that I guess without short TTL tokens.

Re4zOon avatar Apr 03 '24 20:04 Re4zOon

Closing since no update for a while. Feel free to reopen if needed.

pnbruckner avatar May 28 '24 15:05 pnbruckner

Having the same issue as well. A few minutes after getting a new cookie I get this error.

yakeer avatar Jun 27 '24 05:06 yakeer

@yakeer, please provide more detail. You get what error? The OP described getting error 500 when trying to run the config flow. Is that what you mean? And if so, how did you get into the config flow?

pnbruckner avatar Jun 27 '24 13:06 pnbruckner

Never mind. I see you opened a new issue.

pnbruckner avatar Jun 27 '24 13:06 pnbruckner