From 485a4ee67ccb792ce2b4e11f2853e399c4452213 Mon Sep 17 00:00:00 2001 From: Emanuel Almeida Date: Tue, 23 Jun 2026 20:30:05 +0100 Subject: [PATCH] fix(beszel): increase API timeouts to 30s (PocketBase auth is slow) --- api/services/beszel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/services/beszel.ts b/api/services/beszel.ts index 45f6193..3c827cd 100644 --- a/api/services/beszel.ts +++ b/api/services/beszel.ts @@ -87,7 +87,7 @@ async function authenticate(): Promise { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ identity: BESZEL_EMAIL, password: BESZEL_PASSWORD }), - signal: AbortSignal.timeout(10_000), + signal: AbortSignal.timeout(30_000), }) if (!resp.ok) throw new Error(`Beszel auth failed: ${resp.status}`) @@ -106,7 +106,7 @@ async function fetchSystems(): Promise { const resp = await fetch(`${BESZEL_URL}/api/collections/systems/records?limit=100`, { headers: { Authorization: `Bearer ${token}` }, - signal: AbortSignal.timeout(15_000), + signal: AbortSignal.timeout(30_000), }) if (!resp.ok) throw new Error(`Beszel systems fetch failed: ${resp.status}`)