From 6ca4ad1d41d17964397468d971d53b5a90c8836b Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Wed, 8 Jul 2026 10:30:09 +1200 Subject: [PATCH] #203 improve DNS troubleshooting step --- app/src/immich.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/immich.ts b/app/src/immich.ts index 7f6bfe2..0975305 100644 --- a/app/src/immich.ts +++ b/app/src/immich.ts @@ -116,7 +116,8 @@ export async function request (endpoint: string, init?: RequestInit) { } } catch (e) { log('Unable to reach Immich on ' + process.env.IMMICH_URL) - log(`From the server IPP is running on, see if you can curl to ${apiUrl()}/server/ping and receive a JSON result.`) + log(`From the container IPP is running in, run this and check you receive a JSON result: node -e "fetch('${apiUrl()}/server/ping').then(r => r.text()).then(console.log).catch(console.error)"`) + log('Avoid testing with curl - curl uses its own DNS resolver and can succeed even when the resolver Node/IPP uses (musl getaddrinfo) fails. See https://github.com/alangrainger/immich-public-proxy/issues/263') } }