We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9262908 commit 9f3aa94Copy full SHA for 9f3aa94
README.md
@@ -480,7 +480,7 @@ const instance = axios.create({customConfig: {retryOnError: true}})
480
}, function (error) {
481
let { response, config } = error
482
// Do not retry if it is disabled or no request config exists (not an axios error)
483
- if (!config || !instance.defaults.retryOnError) {
+ if (!config || !instance.customConfig.retryOnError) {
484
return Promise.reject(error)
485
}
486
0 commit comments