finity69x2 / nws_alerts

An updated version of the nws_alerts custom integration for Home Assistant
86 stars 29 forks source link

Detected I/O inside the event loop #2

Closed DeadEnded closed 4 years ago

DeadEnded commented 4 years ago

I just wanted to share this issue from the HA logs. If this can be ignored, feel free to close this issue.

Thanks, DeadEnd

Log Details (WARNING) Logger: homeassistant.util.async Source: util/async.py:120 First occurred: 9:08:45 AM (1 occurrences) Last logged: 9:08:45 AM

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for nws_alerts doing I/O at custom_components/nws_alerts/sensor.py, line 126: r = requests.get(url, headers=headers)

finity69x2 commented 4 years ago

TBH, I've never noticed that error in the logs before and I've been using the custom integration for a couple of years now.

So I don't think it should be a concern.

Maybe it was an issue with the nws website that was causing problems. That web service actually has problems quite a bit.

Please let me know if it continues tho or causes issues and I can try to see if I can figure out why.

AkA57 commented 4 years ago

Hello, It's happen with v0.109, check https://www.home-assistant.io/blog/2020/04/29/release-109/#detection-of-blocking-io-in-the-event-loop

ghost commented 4 years ago

I have the same exact error message. It occurs each time the server is restarted.

finity69x2 commented 4 years ago

There is a PR in the works right now to help solver this issue. It should be tested & if all goes well it will be released in a day or two.

finity69x2 commented 4 years ago

fixed with the PR