zhulik / aiotractive

Asynchronous Python client for the Tractive REST API
MIT License
20 stars 6 forks source link

Wait and retry if too many requests #20

Open bieniu opened 10 months ago

bieniu commented 10 months ago

A user with 5 trackers configured with his Tractive account reported a problem with the Too Many Requests API response: https://github.com/home-assistant/core/issues/99121#issuecomment-1702549320 I'm trying to find the perfect sleep value when we reach the limit of allowed requests.

@hupfis Sorry to disturb you. If I understand correctly, you have direct contact with Tractive. Maybe you can give some hint how long we should wait before making another request if we get Too Many Requests response?

bieniu commented 9 months ago

After testing several possibilities, 3 seconds seems like a good value. I mark the PR as ready for review.

bieniu commented 2 weeks ago

@zhulik Could we go back to reviewing this PR?