#141 add additional logging for Immich failure responses

This commit is contained in:
Alan Grainger
2025-10-11 16:10:15 +08:00
parent c23de6331d
commit 76dcd98e68
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "immich-public-proxy",
"version": "1.13.5",
"version": "1.13.6",
"scripts": {
"dev": "ts-node src/index.ts",
"build": "npx tsc",
+6 -1
View File
@@ -88,7 +88,12 @@ class Render {
)
res.end()
} else {
respondToInvalidRequest(res, 404, 'Non-200 response from Immich for asset ' + asset.id)
let immichMessage = ''
try {
const json = await data.json()
if (json.message) immichMessage = '\nResponse from Immich: ' + json.message
} catch (e) { }
respondToInvalidRequest(res, 404, 'Failed response from Immich for asset ' + asset.id + ' on this URL:\n' + url + immichMessage)
}
}