Closed zhen-one closed 6 months ago
This option is also needed if using a custom validateStatus
function like validateStatus: () => true
. In such a case, the "error" response interceptor is never called (but the "success" one is).
@zhen-one you should be able to use the validateStatus function of axios together with retryCondition to accomplish this.
@zhen-one you should be able to use the validateStatus function of axios together with retryCondition to accomplish this.
apologies, in this case validateStatus
is not enough. I've created a PR for this feature. Would like to hear your (or others') opinion on the usage (see: https://github.com/softonic/axios-retry/pull/272#issuecomment-2115781228) please 🙏
this should be now covered by #272 thanks to @obscurecat64 closing this issue
Reason:
Certain APIs consistently return a 200 HTTP code, with custom error codes embedded within the data payload
Like below
Please add an option to decide whether to trigger retry from response or error.