app webhook unreliable since a few days

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
kiboost
Posts: 596
Joined: 21 Jun 2013, 09:27

app webhook unreliable since a few days

Post by kiboost » 11 Sep 2020, 19:49

Hi,

I have an app on https://dev.netatmo.com/ for a few years now.

Since three days, without changing anything, I have only maybe one over ten events that get to the webhook url. First thing I checked was to see if my app was not ban, but no ban since a long time. Has always worked reliably.

What happend ? A new problem with Netatmo servers ?
php-simpleNetatmoAPI Simple to use php API based on official API.

1l2p
Posts: 144
Joined: 30 Nov 2012, 19:34

Re: app webhook unreliable since a few days

Post by 1l2p » 11 Sep 2020, 20:40

Hello,

No problem here with two Presence, one Welcome and few tags. More than 200 callbacks received today (from "NetatmoWebhookServer/1.0" @ infra.azure.netatmo.net) and I find them much more responsive than they were few months ago.

kiboost
Posts: 596
Joined: 21 Jun 2013, 09:27

Re: app webhook unreliable since a few days

Post by kiboost » 12 Sep 2020, 10:48

Hum strange. Does something changed in json structure sent ?

I also saw on dev website that there is not anymore the list of webhooks sent.
php-simpleNetatmoAPI Simple to use php API based on official API.

1l2p
Posts: 144
Joined: 30 Nov 2012, 19:34

Re: app webhook unreliable since a few days

Post by 1l2p » 12 Sep 2020, 14:38

I checked the JSON and couldn't find any changes. However I have a doubt between "push_type" and "event_type", but I am only using "event_type" for years.

https://dev.netatmo.com/apidocumentatio ... ity#events

The documentation is not very clear on this point.

kiboost
Posts: 596
Joined: 21 Jun 2013, 09:27

Re: app webhook unreliable since a few days

Post by kiboost » 13 Sep 2020, 10:42

I have set a debug, logging everything

Code: Select all

$jsonData = file_get_contents('php://input');
file_put_contents('debug.txt', $jsonData, FILE_APPEND);
And indeed, I really don't receive them. Sometimes for a few minutes I got some, then nothing for hours. And it happend suddenly without changing anything :?

I also still have lot of "push_type":"webhook_activation" . Reported it years ago but never changed ...

Maybe I should create a new app to try. But still can't delete apps on dev account (same, for years..)
php-simpleNetatmoAPI Simple to use php API based on official API.

kiboost
Posts: 596
Joined: 21 Jun 2013, 09:27

Re: app webhook unreliable since a few days

Post by kiboost » 14 Sep 2020, 12:22

same thing with another old disabled app, have switch to it with same webhook url.
Had four events one hour ago, and nothing anymore now

:evil:
php-simpleNetatmoAPI Simple to use php API based on official API.

1l2p
Posts: 144
Joined: 30 Nov 2012, 19:34

Re: app webhook unreliable since a few days

Post by 1l2p » 14 Sep 2020, 16:33

Very strange... I just get "NOC-animal", "NOC-human", "NACamera-tag_small_move", "NACamera-movement"... but no "webhook_activation" at all in "push_type" entries.
Did you check the scope values of your apps?

kiboost
Posts: 596
Joined: 21 Jun 2013, 09:27

Re: app webhook unreliable since a few days

Post by kiboost » 14 Sep 2020, 16:55

There is nothing regarding scope values on https://dev.netatmo.com/apps/xxxx ?

And why receiving a few sometimes ? It should work always or never :?
php-simpleNetatmoAPI Simple to use php API based on official API.

Post Reply

Return to “Netatmo API”