File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/Exceptionless.Web/ClientApp/src Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ export function getHealthQuery() {
34
34
return response . data ! as string ;
35
35
} ,
36
36
queryKey : queryKeys . health ,
37
- retry : false ,
37
+ retry : true ,
38
+ retryDelay : 30 * 1000 ,
38
39
staleTime : 30 * 1000
39
40
} ) ) ;
40
41
}
Original file line number Diff line number Diff line change 27
27
setRequestOptions ({
28
28
errorCallback : (response ) => {
29
29
throw response .problem ?? response ;
30
- }
30
+ },
31
+ timeout: 5000
31
32
});
32
33
setAccessTokenFunc (() => accessToken .current );
33
34
43
44
throw error (404 , ' Not found' );
44
45
}
45
46
46
- if ((status === 0 || status === 503 ) && ! ctx .options .expectedStatusCodes ?.includes (status )) {
47
+ if (([ 0 , 408 ]. includes ( status ) || status >= 500 ) && ! ctx .options .expectedStatusCodes ?.includes (status )) {
47
48
const url = page .url ;
48
49
if (url .pathname .startsWith (' /next/status' )) {
49
50
return ;
71
72
}
72
73
73
74
if (error instanceof ProblemDetails ) {
74
- return ! error .status || error .status >= 500 ;
75
+ return !! error .status && error .status < 500 ;
75
76
}
76
77
77
78
return true ;
You can’t perform that action at this time.
0 commit comments