google-cloud-go icon indicating copy to clipboard operation
google-cloud-go copied to clipboard

storage: sometimes client meets 401 AuthenticationRequired error

Open lance6716 opened this issue 1 year ago • 1 comments

Client

e.g. GCS

Environment

e.g. GKE

Go Environment

build by go 1.21.6

Code

multiple goroutine uses RangeReader to read data. And the GKE pod uses service account to access GCS

Expected behavior

no error

Actual behavior

googleapi: got HTTP response code 401 with body: <?xml version='1.0' encoding='UTF-8'?><Error><Code>AuthenticationRequired</Code><Message>Authentication required.</Message></Error>

Screenshots

Additional context

meet this error twiec, after running for 1h and 7.5h. Opened a support case as well.

lance6716 avatar Jan 15 '24 07:01 lance6716

There could be various reasons why this would happen, having to do with your auth setup or with GKE. Have you had any headway with your internal support case? I'm not sure we'd be able to help you here without having access to identifying information to help debug.

tritone avatar Jan 25 '24 02:01 tritone

Closing due to lack of response.

tritone avatar May 10 '24 17:05 tritone