Immich: inspector shows why a request was refused; server.versionCheck documented

Inspect on a real Immich got data only from /server/about and /server/storage; the other four answered with a bare message, most likely a key without the permissions. The inspector now keeps the short message of any answer with HTTP 400 and up (never for a good answer) and shows it on the page and in the copied report. The permission list now includes server.versionCheck, and the docs say which endpoints have been seen live. Tests added.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-17 19:39:43 +01:00
1 parent 76d6bfa85e
commit 6052595dea
7 files changed
+41 -7

No files matched your search

+1 -1
View File
@@ -1855,7 +1855,7 @@ export interface IntegrationInspection {
ok: boolean;
error: string | null;
ms: number;
calls: { method: string; path: string; status: number; ms: number; bytes: number; shape: string | null; contentType?: string; looks?: string; error?: string }[];
calls: { method: string; path: string; status: number; ms: number; bytes: number; shape: string | null; contentType?: string; looks?: string; reply?: string; error?: string }[];
resultShape: string | null;
empty: { path: string; what: "null" | "text" | "list" | "every-item" }[];
}
@@ -27,6 +27,7 @@ function reportText(i: IntegrationSummary, r: IntegrationInspection): string {
lines.push("What was asked and what came back:");
for (const c of r.calls) {
lines.push(` ${c.method} ${c.path} → ${c.status === 0 ? `no answer (${c.error ?? "?"})` : c.status} · ${c.ms} ms · ${c.bytes} bytes`);
if (c.reply) lines.push(` It said: "${c.reply}"`);
if (c.shape) lines.push(` ${c.shape}`);
else if (c.status !== 0) lines.push(` ${notJson(c)}`);
}
@@ -104,6 +105,7 @@ export default function IntegrationInspector({ integration, onClose }: { integra
</span>
</div>
{c.error && <div className="text-red small">{c.error}</div>}
{c.reply && <div className="small">It said: <em>“{c.reply}”</em></div>}
{c.shape && <pre className="small text-secondary mb-0 mt-1" style={{ whiteSpace: "pre-wrap", wordBreak: "break-word" }}>{c.shape}</pre>}
{!c.shape && c.status !== 0 && <div className="text-secondary small">{notJson(c)}</div>}
</div>