connection refused / ECONNREFUSED 127.0.0.1: a 30-second diagnostic runbook
A 4-step runbook that triages connection refused and ECONNREFUSED 127.0.0.1 in 30 seconds. Diagnose a downed server, port mismatch, firewall, or bind address (127.0.0.1 vs 0.0.0.0) with copy-paste commands, including curl, Node, Go, and psq
Jun 27
When docker compose depends_on Doesn't Wait for Your DB — Fix connection refused with healthcheck
Does your app still die with connection refused even with depends_on? Here's why depends_on only guarantees start order, and how to wait until the service is actually ready with healthcheck + condition: service_healthy — copy-paste recipes
Jun 15