diff --git a/src/renderer/src/lib/query-client.ts b/src/renderer/src/lib/query-client.ts index fc454398f0..2724f9915e 100644 --- a/src/renderer/src/lib/query-client.ts +++ b/src/renderer/src/lib/query-client.ts @@ -13,7 +13,7 @@ const queryClient = new QueryClient({ retryDelay: 1000, retry(failureCount, error) { console.error(error) - if (error instanceof FetchError && error.statusCode === undefined) { + if (error instanceof FetchError && (error.statusCode === undefined || error.statusCode === 401)) { return false }