A call to GetFlagKeyList returns a 429 Too Many Requests causes ld-find-code-refs to either exits with exit code 0 if ignoreServiceErrors is set to true or throws a fatal error.
Expected behavior
A call to GetFlagKeyList returns a 429 Too Many Requests is handled by retrying the request after the X-Ratelimit-Reset time has passed. A maximum number of retries is configured through a new argument. If the maximum number of retries is hit then an error is thrown.
I plan on working on this change since it's currently affecting about 10% of our CI runs.
Current behavior
A call to
GetFlagKeyList
returns a429 Too Many Requests
causesld-find-code-refs
to either exits with exit code 0 ifignoreServiceErrors
is set totrue
or throws a fatal error.Expected behavior
A call to
GetFlagKeyList
returns a429 Too Many Requests
is handled by retrying the request after theX-Ratelimit-Reset
time has passed. A maximum number of retries is configured through a new argument. If the maximum number of retries is hit then an error is thrown.I plan on working on this change since it's currently affecting about 10% of our CI runs.