oh2th / com.sensibo

Sensibo app for Athom Homey
GNU General Public License v3.0
1 stars 1 forks source link

Add "Accept-Encoding: gzip" to increase rate limit according to HTTP 429 rate limit response received #38

Closed omere2 closed 2 months ago

omere2 commented 2 months ago

API Limit exceeded. Use "Accept-Encoding: gzip" to increase the rate limit.

oh2th commented 2 months ago

Thanks @omere2 for letting me know. Some users are already reporting this issue at the Homey Community also. Looks like node http.min doesn't support that so need to do some refactoring.

oh2th commented 2 months ago

Headers are set _header: 'GET /api/v2/pods/bQ9xT4Aa/acStates?limit=10&apiKey=XXXXXXXXXXXXXXXXXXXXXXXXX HTTP/1.1\r\n' + 'Accept: application/json, text/plain, /\r\n' + 'Accept-Encoding: gzip\r\n' + 'User-Agent: axios/1.6.8\r\n' + 'Host: home.sensibo.com\r\n' + 'Connection: close\r\n' + '\r\n',

Still getting 429 rate limit