From 8391e363685b5f9e85dbd71ec39297533a1a38fa Mon Sep 17 00:00:00 2001 From: Piotr Fus Date: Wed, 15 Jan 2025 11:26:48 +0100 Subject: [PATCH] v3 --- gcs_storage_client.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gcs_storage_client.go b/gcs_storage_client.go index 34a9a12c9..e81a19d62 100644 --- a/gcs_storage_client.go +++ b/gcs_storage_client.go @@ -79,11 +79,17 @@ func (util *snowflakeGcsClient) getFileHeader(meta *fileMetadata, filename strin client = meta.mockGcsClient } resp, err := client.Do(req) - println(err) + if err != nil { + println(err.Error()) + } if err == io.EOF { println("retrying because of EOF") resp, err = client.Do(req) } + if err != nil && err.Error() == "EOF" { + println("retrying because of EOF 2") + resp, err = client.Do(req) + } return resp, err }) if err != nil {