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 250f62e commit 8be9c3eCopy full SHA for 8be9c3e
src/util/error.ts
@@ -24,7 +24,8 @@ export const throwAndDelegateError = (
24
errorLogger(source, errorMessage, apiKey);
25
}
26
if (axios.isAxiosError(error)) {
27
- const status = error.response?.status || 500;
+ const status =
28
+ error.response?.status || (error.code ? parseInt(error.code) : 500);
29
var errorType: IntegrationErrorType;
30
switch (status) {
31
case 401:
0 commit comments