Forum Sensor.Community

Timeouts to api.sensor.community/v1/push-sensor-data/

I am using Home Assistant to push my sensor values to your great project by submitting rest data. This has been working fine over the last 9 months or so, but since a few days I am receiving timeout errors on the API calls to the api endpoint:

2021-04-13 14:36:44 WARNING (MainThread) [homeassistant.components.rest_command] Timeout call https://api.sensor.community/v1/push-sensor-data/

The actual Home Assistant automation triggering the sending can be found here, which triggers a rest_command which can be found here.

I am not suspecting anything to be wrong with the Home Assistant part - as many data uploads go through just fine between these errors and most data is visible on the map; it is just that in the last few days I see a lot more timeout errors returning. It used to be in the numbers of 1-2 errors a day, now I am seeing errors every few minutes.

While investigating, I noticed that a GET to the endpoint also provides slow results - it took 22 seconds to return with a 405 - Method not allowed error.

Is there anything we can do on our side to improve this behavior?

Could you please check this again? If possible please check this also without https (http only). There is a significant overhead if SSL is used.

1 Like

The 14:36 error was the last one today. I’ll keep an eye on it.

I’ll update one of the commands to use http instead of https, to see if it makes any difference in number of timeout errors.

The http endpoints also timeout once in a while:

2021-04-14 08:44:55 WARNING (MainThread) [homeassistant.components.rest_command] Timeout call http://api.sensor.community/v1/push-sensor-data/
2021-04-14 08:52:55 WARNING (MainThread) [homeassistant.components.rest_command] Timeout call http://api.sensor.community/v1/push-sensor-data/

Timeout is the default 10sec.