According to MDN the header of a 429 error
code response shuld contain a parameter like Retry-After: 3600 that indicates the time to wait before performing another request.
But in the header of the api there is no parameter like this, so we dont know how much time wait before we culd perform another request.
Error
According to MDN the header of a 429 error code response shuld contain a parameter like
Retry-After: 3600
that indicates the time to wait before performing another request.But in the header of the api there is no parameter like this, so we dont know how much time wait before we culd perform another request.
The header of the request with bad error code:
How i resolved (at least i tryed)
So instead of waiting before performing antoher request, i created a bypass when the request return a bad error code.
The sensor will update it's state only if the request code is right.