home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.04k stars 31.07k forks source link

Error fetching OpenWeatherMap data #122093

Closed Al-Dek closed 4 months ago

Al-Dek commented 4 months ago

The problem

The data request from openweathermap ends with an error after 20 seconds delay. When requested through the browser, the response follows instantly and is completely correct.

What version of Home Assistant Core has the issue?

2024.7.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

OpenWeatherMap

Link to integration documentation on our website

https://www.home-assistant.io/integrations/openweathermap/

Diagnostics information

2024-07-17 18:18:31.334 INFO (MainThread) [pyopenweathermap.owm_client] Initializing OWMClient with api version: v3.0 2024-07-17 18:18:31.335 DEBUG (MainThread) [pyopenweathermap.owm_client] Requesting url: https://api.openweathermap.org/data/3.0/onecall?lat=XXX.720898&lon=XXX.30459&exclude=&appid=XXXXXXXXX3063abf81f44d133b&units=metric&lang=en 2024-07-17 18:18:51.834 DEBUG (MainThread) [homeassistant.components.openweathermap.coordinator] Finished fetching openweathermap data in 20.499 seconds (success: False) 2024-07-17 18:20:11.901 INFO (MainThread) [pyopenweathermap.owm_client] Initializing OWMClient with api version: v3.0 2024-07-17 18:20:11.901 DEBUG (MainThread) [pyopenweathermap.owm_client] Requesting url: https://api.openweathermap.org/data/3.0/onecall?lat=XXX.720898&lon=XXX.30459&exclude=&appid=XXXXXXXXXX063abf81f44d133b&units=metric&lang=en 2024-07-17 18:20:32.834 DEBUG (MainThread) [homeassistant.components.openweathermap.coordinator] Finished fetching openweathermap data in 20.932 seconds (success: False) 2024-07-17 18:21:52.886 INFO (MainThread) [pyopenweathermap.owm_client] Initializing OWMClient with api version: v3.0 2024-07-17 18:21:52.887 DEBUG (MainThread) [pyopenweathermap.owm_client] Requesting url: https://api.openweathermap.org/data/3.0/onecall?lat=XXX.720898&lon=XXX.30459&exclude=&appid=XXXXXXXXX7f3063abf81f44d133b&units=metric&lang=en 2024-07-17 18:22:13.834 DEBUG (MainThread) [homeassistant.components.openweathermap.coordinator] Finished fetching openweathermap data in 20.947 seconds (success: False) 2024-07-17 18:23:34.197 INFO (MainThread) [pyopenweathermap.owm_client] Initializing OWMClient with api version: v3.0 2024-07-17 18:23:34.197 DEBUG (MainThread) [pyopenweathermap.owm_client] Requesting url: https://api.openweathermap.org/data/3.0/onecall?lat=XXX.720898&lon=XXX.30459&exclude=&appid=XXXXXXX7f3063abf81f44d133b&units=metric&lang=en 2024-07-17 18:23:54.834 DEBUG (MainThread) [homeassistant.components.openweathermap.coordinator] Finished fetching openweathermap data in 20.636 seconds (success: False)

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 4 months ago

Hey there @fabaff, @freekode, @nzapponi, mind taking a look at this issue as it has been labeled with an integration (openweathermap) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `openweathermap` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign openweathermap` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


openweathermap documentation openweathermap source (message by IssueLinks)

Al-Dek commented 4 months ago

No problem with OpenWeatherMap integration. It was ISP routing problem.