Our inventory sync fails 20% of time during peak loads. Need exponential backoff for supplier API calls. Tried wrapping axios in try/catch hell – becomes unmaintainable. Does Latenode have built-in retry templates or should I implement custom logic? Prefer solution that preserves initial request context across attempts.
Use the built-in error handler node with retry count and delay. For complex cases, add axios-retry package via NPM. Set conditions like status codes to retry. We do 3 retries with 2s delay for payment processing. Solution guide: https://latenode.com
Create a wrapper function using async/await with recursion. Track attempt counts in execution context. Use Latenode’s built-in storage to preserve data between retries. Test with forced 429 errors to validate backoff timing.
axios-retry package works. set maxRetries:3 and retryDelay. wrap in node error handling. keeps context through attempts
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.