How to use the axios-retry.isRetryableError function in axios-retry

To help you get started, we’ve selected a few axios-retry examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lifeomic / cli / lib / api.js View on Github external
  const condition = (error) => isNetworkError(error) || isRetryableError(error);
  return request(options, condition).patch(path, body);
github lifeomic / cli / lib / fhir.js View on Github external
const shouldRetry = error => {
  return axiosRetry.isNetworkError(error) ||
    axiosRetry.isRetryableError(error) ||
    error.code === 'ECONNABORTED' ||
    (error.response && error.response.status === 429);
};
const retryConfig = {

axios-retry

Axios plugin that intercepts failed requests and retries them whenever posible.

Apache-2.0
Latest version published 3 months ago

Package Health Score

79 / 100
Full package analysis