From efed85383380df36f8568517174af02bf80ac58c Mon Sep 17 00:00:00 2001 From: Paul Rogers <129207811+paul1r@users.noreply.github.com> Date: Mon, 23 Sep 2024 10:03:07 -0400 Subject: [PATCH] fix: Expand matching for additional variations (#14221) (cherry picked from commit 71d7291c9c00c3887d9a509991eb4d3e15ae8699) --- pkg/storage/chunk/client/gcp/gcs_object_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/chunk/client/gcp/gcs_object_client.go b/pkg/storage/chunk/client/gcp/gcs_object_client.go index 69be4e2acf372..e8f5b4a64d850 100644 --- a/pkg/storage/chunk/client/gcp/gcs_object_client.go +++ b/pkg/storage/chunk/client/gcp/gcs_object_client.go @@ -272,7 +272,7 @@ func (s *GCSObjectClient) IsStorageTimeoutErr(err error) bool { if isContextErr(err) { // Go 1.23 changed the type of the error returned by the http client when a timeout occurs // while waiting for headers. This is a server side timeout. - return strings.Contains(err.Error(), "Client.Timeout exceeded while awaiting header") + return strings.Contains(err.Error(), "Client.Timeout") } // connection misconfiguration, or writing on a closed connection