Skip to content

Commit

Permalink
Add debug logging for unknown error
Browse files Browse the repository at this point in the history
  • Loading branch information
alangrainger committed Nov 15, 2024
1 parent 0c7ab31 commit f9123e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 5 additions & 0 deletions app/src/immich.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f9123e8

Please sign in to comment.