core icon indicating copy to clipboard operation
core copied to clipboard

NWS integration is not working: Error requesting NWS forecast station

Open RACMan2527 opened this issue 1 year ago • 4 comments

The problem

NWS integration is reporting an error related to my reporting station, KGED.

Logger: homeassistant.components.nws Source: helpers/update_coordinator.py:303 Integration: National Weather Service (NWS) (documentation, issues) First occurred: 11:59:34 AM (1 occurrences) Last logged: 11:59:34 AM

Error requesting NWS forecast station KGED data: 500, message='Internal Server Error', url=URL('https://api.weather.gov/gridpoints/PHI/55,22/forecast')

What version of Home Assistant Core has the issue?

2023.11.3

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

NWS

Link to integration documentation on our website

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

Diagnostics information

Logger: homeassistant.components.nws Source: helpers/update_coordinator.py:303 Integration: National Weather Service (NWS) (documentation, issues) First occurred: 11:59:34 AM (1 occurrences) Last logged: 11:59:34 AM

Error requesting NWS forecast station KGED data: 500, message='Internal Server Error', url=URL('https://api.weather.gov/gridpoints/PHI/55,22/forecast')

Example YAML snippet

No response

Anything in the logs that might be useful for us?

## System Information

version | core-2023.11.3
-- | --
installation_type | Home Assistant OS
dev | false
hassio | true
docker | true
user | root
virtualenv | false
python_version | 3.11.6
os_name | Linux
os_version | 6.1.59
arch | x86_64
timezone | America/New_York
config_dir | /config

<details><summary>Home Assistant Community Store</summary>

GitHub API | ok
-- | --
GitHub Content | ok
GitHub Web | ok
GitHub API Calls Remaining | 5000
Installed Version | 1.33.0
Stage | running
Available Repositories | 1430
Downloaded Repositories | 27

</details>

<details><summary>Home Assistant Supervisor</summary>

host_os | Home Assistant OS 11.1
-- | --
update_channel | stable
supervisor_version | supervisor-2023.11.6
agent_version | 1.6.0
docker_version | 24.0.6
disk_total | 97.7 GB
disk_used | 50.9 GB
healthy | true
supported | true
board | ova
supervisor_api | ok
version_api | ok
installed_addons | Studio Code Server (5.14.2), File editor (5.7.0), SharpTools.io (1.0.9), Terminal & SSH (9.7.1), Samba share (10.0.2), Mosquitto broker (6.4.0), roombapw Docker Image (1.0.0), Node-RED (16.0.2), SwitchBot-Mqtt (1.0.6)

</details>

<details><summary>Dashboards</summary>

dashboards | 5
-- | --
resources | 12
views | 8
mode | storage

</details>

<details><summary>Recorder</summary>

oldest_recorder_run | November 12, 2023 at 9:13 AM
-- | --
current_recorder_run | December 6, 2023 at 11:18 AM
estimated_db_size | 6089.09 MiB
database_engine | sqlite
database_version | 3.41.2

</details>

Additional information

No response

RACMan2527 avatar Dec 06 '23 19:12 RACMan2527

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

Code owner commands

Code owners of nws 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 nws 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)


nws documentation nws source (message by IssueLinks)

home-assistant[bot] avatar Dec 06 '23 19:12 home-assistant[bot]

Looks like it was a NWS issue it recovered on it's own for me ...

<redacted> data: 500, message='Internal Server Error', url=URL('https://api.weather.gov/gridpoints/STO/60,97/forecast')
2023-12-07 12:22:38.441 INFO (MainThread) [homeassistant.components.nws] Fetching NWS forecast station <redacted> data recovered
2023-12-07 13:46:58.467 DEBUG (MainThread) [pynws.raw_data] Request for https://api.weather.gov/stations/<redacted>/observations/ returned code: 200
[Data Redacted]
2023-12-07 13:46:58.467 DEBUG (MainThread) [homeassistant.components.nws] Finished fetching NWS observation station <redacted> data in 0.397 seconds (success: True)
2023-12-07 13:46:58.548 DEBUG (MainThread) [homeassistant.components.nws] Finished fetching NWS forecast station <redacted> data in 0.080 seconds (success: True)
2023-12-07 13:46:58.596 DEBUG (MainThread) [homeassistant.components.nws] Finished fetching NWS forecast hourly station <redacted> data in 0.048 seconds (success: True)

jpettitt avatar Dec 07 '23 21:12 jpettitt

I see this error in my logs regularly since I set up the integration a few months ago- six times in the last 48 hours- sometimes for the forecast data, sometimes for the hourly forecast data. This is definitely more often than what Im hoping are actual operational errors on the NWS end.

relevant issue?: https://github.com/weather-gov/api/discussions/241

spigot avatar Dec 12 '23 16:12 spigot

Looks like it was a NWS issue it recovered on it's own for me ...

<redacted> data: 500, message='Internal Server Error', url=URL('https://api.weather.gov/gridpoints/STO/60,97/forecast')
2023-12-07 12:22:38.441 INFO (MainThread) [homeassistant.components.nws] Fetching NWS forecast station <redacted> data recovered
2023-12-07 13:46:58.467 DEBUG (MainThread) [pynws.raw_data] Request for https://api.weather.gov/stations/<redacted>/observations/ returned code: 200
[Data Redacted]
2023-12-07 13:46:58.467 DEBUG (MainThread) [homeassistant.components.nws] Finished fetching NWS observation station <redacted> data in 0.397 seconds (success: True)
2023-12-07 13:46:58.548 DEBUG (MainThread) [homeassistant.components.nws] Finished fetching NWS forecast station <redacted> data in 0.080 seconds (success: True)
2023-12-07 13:46:58.596 DEBUG (MainThread) [homeassistant.components.nws] Finished fetching NWS forecast hourly station <redacted> data in 0.048 seconds (success: True)

Indeed, it cleared up for me as well...until a few days ago, and now the Forecast data is no longer being sent for my location as well. I see another issue reported that mirrors what I am experiencing...

RACMan2527 avatar Dec 25 '23 16:12 RACMan2527

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.