From d680548abd84418ce4f04978de11dc90f0c6797e Mon Sep 17 00:00:00 2001 From: Pavel Merdin Date: Sat, 11 Oct 2025 21:04:49 +0000 Subject: [PATCH] fix for panic on http error before that change http error triggered the following error: panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x7f1153] goroutine 1 [running]: github.com/concourse/retryhttp.(*RetryRoundTripper).RoundTrip.func1() github.com/concourse/retryhttp@v1.2.4/retry_round_tripper.go:57 +0xf3 after the change the right message is shown: failed to ping registry: 2 errors occurred: * ping https: Get "https://registry-1.docker.io/v2/": context deadline exceeded (Client.Timeout exceeded while awaiting headers) Signed-off-by: Pavel Merdin --- cmd/check/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/check/main.go b/cmd/check/main.go index 14fd740..97e303b 100644 --- a/cmd/check/main.go +++ b/cmd/check/main.go @@ -340,6 +340,7 @@ func retryRoundTripper(logger lager.Logger, rt http.RoundTripper) http.RoundTrip Logger: logger, BackOffFactory: retryhttp.NewExponentialBackOffFactory(5 * time.Minute), RoundTripper: rt, + Retryer: &retryhttp.DefaultRetryer{}, } }