|
|
@@ -1314,11 +1314,14 @@ function normalizeError(error: unknown): { message?: string; name?: string; stat
|
|
|
return { message: String(error) };
|
|
|
}
|
|
|
|
|
|
-function isIgnorableCancelError(error?: { status?: number; code?: string }): boolean {
|
|
|
+function isIgnorableCancelError(error?: { status?: number; code?: string; name?: string; message?: string }): boolean {
|
|
|
if (!error) return false;
|
|
|
if (error.status === 404) return true;
|
|
|
if (error.status === 422 && (error.code === '5' || error.code === 'order_not_active')) {
|
|
|
return true;
|
|
|
}
|
|
|
+ if (error.status === 400 && (error.name === 'PacificaValidationError' || error.message?.toLowerCase().includes('invalid message'))) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
return false;
|
|
|
}
|