You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: #272 (comment)) please 🙏
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.
The text was updated successfully, but these errors were encountered: