I read about the example below, but I am worried about infinite retries if somehow the server keeps returning 429s.
- Is there a default limit on the number of retry?
- Is there a way to control the number of retries from a throttledError?
const yourAfterResponse = (resp) => { if (resp.status === 429) { throw new z.errors.ThrottledError('message here', 60); // Zapier will retry in 60 seconds } return resp;};
Best answer by MarinaH
View original