fix(failover): handle unhandled stop reason error

This commit is contained in:
Peter Steinberger
2026-03-03 01:04:20 +00:00
parent ced267c5cb
commit a2fdc3415f
5 changed files with 19 additions and 3 deletions

View File

@@ -643,7 +643,7 @@ const ERROR_PATTERNS = {
/without sending (?:any )?chunks?/i,
/\bstop reason:\s*abort\b/i,
/\breason:\s*abort\b/i,
/\bunhandled stop reason:\s*abort\b/i,
/\bunhandled stop reason:\s*(?:abort|error)\b/i,
],
billing: [
/["']?(?:status|code)["']?\s*[:=]\s*402\b|\bhttp\s*402\b|\berror(?:\s+code)?\s*[:=]?\s*402\b|\b(?:got|returned|received)\s+(?:a\s+)?402\b|^\s*402\s+payment/i,