diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-03-03 01:36:33 -0500 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-06-06 22:19:50 -0400 |
| commit | fd41332a85b1a1f11ff0f092ec9268942969df24 (patch) | |
| tree | 12227162d6f76afcf638246cfd6e5258a42b8873 | |
| parent | fix lint errors in ApPersonService.ts (diff) | |
| download | sharkey-fd41332a85b1a1f11ff0f092ec9268942969df24.tar.gz sharkey-fd41332a85b1a1f11ff0f092ec9268942969df24.tar.bz2 sharkey-fd41332a85b1a1f11ff0f092ec9268942969df24.zip | |
do not retry SyntaxErrors
| -rw-r--r-- | packages/backend/src/misc/is-retryable-error.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/backend/src/misc/is-retryable-error.ts b/packages/backend/src/misc/is-retryable-error.ts index b0fbdf44cc..ed2a7ebee3 100644 --- a/packages/backend/src/misc/is-retryable-error.ts +++ b/packages/backend/src/misc/is-retryable-error.ts @@ -18,6 +18,7 @@ export function isRetryableError(e: unknown): boolean { if (e instanceof UnrecoverableError) return false; if (e instanceof AbortError) return true; if (e instanceof FetchError) return true; + if (e instanceof SyntaxError) return false; if (e instanceof Error) return e.name === 'AbortError'; return true; } |