jira-toggl
jira-toggl copied to clipboard
429 Too many requests
Hello
If I select a date range of a week, with many time entries and several Toggl projects, Toggl rejects some api request with a "429 Too many request".
See a screenhost with some rejected requests:
You can also see that more than one api request are made for the same project.
I see too optimizations here:
- introduce a cache for projects: if one project has been fetched, no need to call the api again
- if a request leads to a 429, wait for 500 milliseconds and retry it
Hi @dogawaf
I think the easiest solution would be to use the axios-retry-after package which seems to do what you suggest. Will try to find some time to add it, but I've also added the help-wanted label if anyone else have time to add it :-)