fix(util): resolve executing retry even when HTTP status code is 401 (#3756)
This commit is contained in:
parent
04d4c5cd66
commit
36274025d6
|
|
@ -216,6 +216,7 @@ const transform: AxiosTransform = {
|
|||
const { isOpenRetry } = config.requestOptions.retryRequest;
|
||||
config.method?.toUpperCase() === RequestEnum.GET &&
|
||||
isOpenRetry &&
|
||||
error?.response?.status !== 401 &&
|
||||
// @ts-ignore
|
||||
retryRequest.retry(axiosInstance, error);
|
||||
return Promise.reject(error);
|
||||
|
|
|
|||
Loading…
Reference in New Issue