From f9123e8a0478d223291760e10941b6a9403d8e35 Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Fri, 15 Nov 2024 18:02:36 +0100 Subject: [PATCH] Add debug logging for unknown error --- app/package.json | 2 +- app/src/immich.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/package.json b/app/package.json index 43025d7..e684bf0 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "immich-public-proxy", - "version": "1.4.3", + "version": "1.4.4", "scripts": { "dev": "ts-node src/index.ts", "build": "npx tsc", diff --git a/app/src/immich.ts b/app/src/immich.ts index 15eea3a..741b3ae 100644 --- a/app/src/immich.ts +++ b/app/src/immich.ts @@ -163,6 +163,11 @@ class Immich { } // Otherwise return failure log('Immich response ' + res.status + ' for key ' + key) + try { + console.log((await res.text()).slice(0, 500)) + } catch (e) { + console.log(e) + } return { valid: false }