diff --git a/src/common/Backend.ts b/src/common/Backend.ts index d98753eac..7b37d70f2 100644 --- a/src/common/Backend.ts +++ b/src/common/Backend.ts @@ -198,9 +198,13 @@ export class Backend { if (error.response?.data) { return error.response.data as T; } - if (axios.isCancel(error)) { + // Note: Don't use axios.isCancel as it is currently bugged + if (error instanceof axios.CanceledError) { throw CancelError.fromCancel(error, error.config); } + if (error instanceof axios.AxiosError) { + throw error; + } assertNever(error); } if (ServerError.isJson(error)) {