TeslaPy icon indicating copy to clipboard operation
TeslaPy copied to clipboard

429 on every sync_wake_up() call

Open andeplane opened this issue 2 years ago • 3 comments

Just checking if anyone else sees the same. If I just run a single call to sync_wake_up(), the API responds with 429 even though that is the only call in a long time.

Has anyone else seen this?

andeplane avatar Jun 25 '23 09:06 andeplane

I'm thinking they changed their limits within the last year. I was working with this module about a year ago and now I'm getting similar 429 error with the same use of the module

mababio avatar Sep 22 '23 19:09 mababio

I am not getting a 429. You can try to increase the backoff parameter on sync_wake_up, to 1.3, 1.4 or 1.5 to see if that works. The initial interval can be increased to 3 or more if increasing backoff isn't effective. Please let me know if it works and I can change the defaults.

tdorssers avatar Sep 25 '23 19:09 tdorssers

Ah I'm getting 429 but not with the sync_wake_up method I think. I wrapped my Logic within a python @retry decorator. It fails still but at least the @retry decorator retries of me.

mababio avatar Sep 27 '23 17:09 mababio