openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.87k stars 3.58k forks source link

[sensibo] Feature request - Accep-Encoding: Gzip #17069

Open kusanghi opened 2 months ago

kusanghi commented 2 months ago

Hi all,

Error API limit connection to Sensibo server, I am using OH version 4.2.0.

Screenshot 2024-07-16 at 09 37 57

In recent updates of Sensibo, in addition to the time limit for sending to the server, sensibo requires the transmission parameter of the HEADER to have "Gzip" Sensibo API :

Screenshot 2024-07-15 at 21 11 30

On Postman, I tried adding this parameter and it worked.

Screenshot 2024-05-26 at 21 29 19
lsiepel commented 2 months ago

Adding the header is not that difficult, but the error message does not show any reference to the header. It is about the api requests limit. Are your sure this isssues is fixed by the header? don’t we need to add some call limiter ?

kusanghi commented 2 months ago

There is some API key, when the data returns "TooManyRequests", just increase the polling time. There are some API Keys (possibly old accounts), the returned data is limited, and requires the use of gzip

Screenshot 2024-07-16 at 13 16 11
lsiepel commented 1 month ago

As gzip already seems to be set with all requests. The cause is probably something else, like the rate limit you mentioned. Are you aware of the actual rate limit rules?