From dfcce073db1222085a0e40adf8d613a570ac2f38 Mon Sep 17 00:00:00 2001 From: Syco21 Date: Wed, 20 May 2026 19:15:24 +0200 Subject: [PATCH] Show qBittorrent auth response in error message for debugging --- server/routes/qbittorrent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/qbittorrent.ts b/server/routes/qbittorrent.ts index 49ba6ed..7219f3c 100644 --- a/server/routes/qbittorrent.ts +++ b/server/routes/qbittorrent.ts @@ -21,7 +21,7 @@ async function getCookie(): Promise { ) const cookie = (res.headers['set-cookie'] ?? []).find((c: string) => c.startsWith('SID=')) - if (!cookie || res.data === 'Fails.') throw new Error('qBittorrent login failed') + if (!cookie) throw new Error(`qBittorrent login failed: ${String(res.data).trim()}`) sid = cookie.split(';')[0] sidExpiry = Date.now() + 55 * 60 * 1000