mirror of
https://github.com/alangrainger/immich-public-proxy.git
synced 2024-12-28 20:01:57 +00:00
Add debug logging for unknown error
This commit is contained in:
parent
0c7ab319e7
commit
f9123e8a04
2 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "immich-public-proxy",
|
"name": "immich-public-proxy",
|
||||||
"version": "1.4.3",
|
"version": "1.4.4",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "ts-node src/index.ts",
|
"dev": "ts-node src/index.ts",
|
||||||
"build": "npx tsc",
|
"build": "npx tsc",
|
||||||
|
|
|
@ -163,6 +163,11 @@ class Immich {
|
||||||
}
|
}
|
||||||
// Otherwise return failure
|
// Otherwise return failure
|
||||||
log('Immich response ' + res.status + ' for key ' + key)
|
log('Immich response ' + res.status + ' for key ' + key)
|
||||||
|
try {
|
||||||
|
console.log((await res.text()).slice(0, 500))
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
valid: false
|
valid: false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue