Add debug logging for unknown error

This commit is contained in:
Alan Grainger committed 2024-11-15 18:02:41 +01:00
1 parent 0c7ab319e7
commit f9123e8a04
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -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",
+5
View File
@@ -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
}