Core: Tons of metno errors in logs

Created on 17 Jun 2020  路  18Comments  路  Source: home-assistant/core


metno producing a ton of errors in the logs:

Jun 17 13:07:08 localhost hass[17008]: 2020-06-17 13:07:08 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
Jun 17 13:07:08 localhost hass[17008]: 2020-06-17 13:07:08 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 17 minutes
Jun 17 13:24:09 localhost hass[17008]: 2020-06-17 13:24:09 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
Jun 17 13:24:09 localhost hass[17008]: 2020-06-17 13:24:09 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 15 minutes
Jun 17 13:39:10 localhost hass[17008]: 2020-06-17 13:39:10 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
Jun 17 13:39:10 localhost hass[17008]: 2020-06-17 13:39:10 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 20 minutes
Jun 17 13:59:11 localhost hass[17008]: 2020-06-17 13:59:11 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
Jun 17 13:59:11 localhost hass[17008]: 2020-06-17 13:59:11 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 18 minutes
Jun 17 14:17:12 localhost hass[17008]: 2020-06-17 14:17:12 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
Jun 17 14:17:12 localhost hass[17008]: 2020-06-17 14:17:12 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 17 minutes
Jun 17 14:34:13 localhost hass[17008]: 2020-06-17 14:34:13 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
Jun 17 14:34:13 localhost hass[17008]: 2020-06-17 14:34:13 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 18 minutes
Jun 17 14:52:14 localhost hass[17008]: 2020-06-17 14:52:14 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
Jun 17 14:52:14 localhost hass[17008]: 2020-06-17 14:52:14 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 17 minutes
Jun 17 15:09:15 localhost hass[17008]: 2020-06-17 15:09:15 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
Jun 17 15:09:15 localhost hass[17008]: 2020-06-17 15:09:15 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 18 minutes
Jun 17 15:27:16 localhost hass[17008]: 2020-06-17 15:27:16 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
Jun 17 15:27:16 localhost hass[17008]: 2020-06-17 15:27:16 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 18 minutes
Jun 17 15:45:18 localhost hass[17008]: 2020-06-17 15:45:18 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
Jun 17 15:45:18 localhost hass[17008]: 2020-06-17 15:45:18 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 15 minutes
Jun 17 16:00:19 localhost hass[17008]: 2020-06-17 16:00:19 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
Jun 17 16:00:19 localhost hass[17008]: 2020-06-17 16:00:19 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 18 minutes


Home Assistant 0.111.1

met

Most helpful comment

Fixed in 0.111.4

All 18 comments

Since today, API 2.0 seems to be out of beta : https://api.met.no/weatherapi/locationforecast/2.0/documentation#version_2.0_out_of_beta:_2020-06-17

maybe linked ?

I see the same both on yr platform and the met.no integration.

HA 0.111.3

same here. reinstall met.no didn't help

get this on met.no api website
Warning! This version (1.9) is deprecated! Please use version 2.0 for continued service.

Same issue here.
However, I think it might be just a temporary glitch/bug introduced while releasing the new version of the met.no API.
For now, apparently the intention was just to "deprecate" the old API, not to "terminate" it. According to the statement on their website, a final termination date is not set yet, it might be before Christmas:

_Locationforecast 2.0 will be officially launched on Wednesday 17 June 2020. At the same time version 1.9 will be deprecated. A final termination date has not been set yet, but we plan on turning it off before xmas.
The already deprecated LocationforecastLTS will terminate on 1 Sept 2020. This gives you almost three months to port your applications to Locationforecast 2.0, if you havent already started.
_

Hey there @danielhiversen, mind taking a look at this issue as its been labeled with a integration (met) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

Quick workaround:

# sed -i 's/!= 200/not in (200, 203)/' /usr/local/lib/python3.7/site-packages/metno/__init__.py

in your Home Assistant container. This needs to be fixed in the metno package.

Quick workaround:

# sed -i 's/!= 200/not in (200, 203)/' /usr/local/lib/python3.7/site-packages/metno/__init__.py

in your Home Assistant container. This needs to be fixed in the metno package.

Yep, that works, thanks for sharing your quick workaround!

We need same fix for the yr platform. However I don't know which files to edit?

Quick workaround:

# sed -i 's/!= 200/not in (200, 203)/' /usr/local/lib/python3.7/site-packages/metno/__init__.py

in your Home Assistant container. This needs to be fixed in the metno package.

This removes the error, but the issue with adding cards to the UI is broken now.

When the modal to choose card is shown the UI stuck and the errors below are shown in the console:

hui-weather-forecast-card.ts:39 hui-light-card Error: Specify an entity from within the light domain.
at HTMLElement.value (hui-light-card.ts:36)
at s (hui-weather-forecast-card.ts:39)
at l (hui-weather-forecast-card.ts:39)
at Ut (hui-weather-forecast-card.ts:39)
at HTMLElement.value (hui-card-picker.ts:42)
at HTMLElement.value (hui-card-picker.ts:42)

hui-thermostat-card Error: Specify an entity from within the climate domain.
at HTMLElement.value (hui-light-card.ts:36)
at s (hui-weather-forecast-card.ts:39)
at l (hui-weather-forecast-card.ts:39)
at Ut (hui-weather-forecast-card.ts:39)
at HTMLElement.value (hui-card-picker.ts:42)
at HTMLElement.value (hui-card-picker.ts:42)

hui-alarm-panel-card Error: Invalid card configuration
at HTMLElement.value (ha-label-badge.ts:139)
at s (hui-weather-forecast-card.ts:39)
at hui-weather-forecast-card.ts:39
at l (hui-weather-forecast-card.ts:39)
at Ut (hui-weather-forecast-card.ts:39)
at HTMLElement.value (hui-card-picker.ts:42)
at HTMLElement.value (hui-card-picker.ts:42)

and more ...

Problem also occurs with version 0.111.3

Fixed in 0.111.4

Works pretty well. Thanks for the fast fix.

Hi @balloob, i am using HA version 112.2 in a docker container and unfortunately this error is back:

2020-07-06 10:19:33 ERROR (MainThread) [metno] https://aa015g6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 
2020-07-06 10:19:33 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 17 minutes

I am having the same problem as @nicx

The error appears for me on a fresh install into a virtualenv on a seperate user, with no config changes at all. The weather widget is completely non-funcitonal.

The error is the same as ncix's, complete with retrying in x minutes message.
image

@JoelEllis
Version of Home Assistant?

It was seperate user venv install. I reinstalled with a supervied install, and there are no errors now. I can't remember the version I had in the venv, but it was the latest from pip. The version I have installed now (in the supervised install) is Home Assistant 0.114.4.

Sorry for the late reply by the way - didn't see this in the notification deluge.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Konstigt picture Konstigt  路  3Comments

sh0rez picture sh0rez  路  3Comments

Elmardus picture Elmardus  路  3Comments

missedtheapex picture missedtheapex  路  3Comments

arangates picture arangates  路  3Comments