google-cloud-go
google-cloud-go copied to clipboard
storage: sometimes client meets 401 AuthenticationRequired error
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.
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.
Closing due to lack of response.