Function to invoke which returns a promise. After the promise resolves, the retry will be triggered. If provided, this will be used in-place of theretryDelay
retryDelay
retryDelay?:number;
The amount of time to initially delay the retry, in ms. Defaults to 100ms.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface RetryConfig (6.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [6.5.0 (latest)](/nodejs/docs/reference/gaxios/latest/gaxios/retryconfig)\n- [6.4.0](/nodejs/docs/reference/gaxios/6.4.0/gaxios/retryconfig)\n- [6.3.0](/nodejs/docs/reference/gaxios/6.3.0/gaxios/retryconfig)\n- [6.2.0](/nodejs/docs/reference/gaxios/6.2.0/gaxios/retryconfig)\n- [6.1.1](/nodejs/docs/reference/gaxios/6.1.1/gaxios/retryconfig)\n- [6.0.4](/nodejs/docs/reference/gaxios/6.0.4/gaxios/retryconfig) \nConfiguration for the Gaxios `request` method.\n\nPackage\n-------\n\n[gaxios](../overview.html)\n\nProperties\n----------\n\n### currentRetryAttempt\n\n currentRetryAttempt?: number;\n\nThe number of retries already attempted.\n\n### httpMethodsToRetry\n\n httpMethodsToRetry?: string[];\n\nThe HTTP Methods that will be automatically retried. Defaults to \\['GET','PUT','HEAD','OPTIONS','DELETE'\\]\n\n### noResponseRetries\n\n noResponseRetries?: number;\n\nWhen there is no response, the number of retries to attempt. Defaults to 2.\n\n### onRetryAttempt\n\n onRetryAttempt?: (err: GaxiosError) =\u003e Promise\u003cvoid\u003e | void;\n\nFunction to invoke when a retry attempt is made.\n\n### retry\n\n retry?: number;\n\nThe number of times to retry the request. Defaults to 3.\n\n### retryBackoff\n\n retryBackoff?: (err: GaxiosError, defaultBackoffMs: number) =\u003e Promise\u003cvoid\u003e;\n\nFunction to invoke which returns a promise. After the promise resolves, the retry will be triggered. If provided, this will be used in-place of the `retryDelay`\n\n### retryDelay\n\n retryDelay?: number;\n\nThe amount of time to initially delay the retry, in ms. Defaults to 100ms.\n\n### shouldRetry\n\n shouldRetry?: (err: GaxiosError) =\u003e Promise\u003cboolean\u003e | boolean;\n\nFunction to invoke which determines if you should retry\n\n### statusCodesToRetry\n\n statusCodesToRetry?: number[][];\n\nThe HTTP response status codes that will automatically be retried. Defaults to: \\[\\[100, 199\\], \\[408, 408\\], \\[429, 429\\], \\[500, 599\\]\\]"]]