pubsub: randomly got an unauthorized error in rpc call
Client
PubSub
Environment
Ubuntu Docker on GKE
$ go 1.21
Additional context
We got the following unauthenticated error with Request had invalid euc header randomly in our production environment. From the error description, it seems this was caused by the PubSub server-side behavior but cannot find any related documentation about this.
rpc error: code = Unauthenticated desc = Request had invalid euc header.
@hongalex wants to know if the euc is the short form for End User Computation?
Hi, this feels like an authentication / GKE issue that is not specific to the Go Pub/Sub library. If you have a support contract, could you file a support ticket so we can look into this further?
if the euc is the short form for End User Computation?
I don't think so, but would be good to clarify this in the ticket you open.
git-hulk Could you also let us know the time / date of the incident + if there was a recurrence or a one time issue?
Happened to us as well, 17 occurrences in the past 7 days:
- 2025-04-28T04:44:38+00:00
- 2025-04-28T04:44:38+00:00
- 2025-04-28T04:44:38+00:00
- 2025-04-28T04:44:36+00:00
- 2025-04-28T04:44:36+00:00
- 2025-04-28T04:44:36+00:00
- 2025-04-28T04:20:04+00:00
- 2025-04-28T04:20:04+00:00
- 2025-04-28T04:19:33+00:00
- 2025-04-28T04:19:33+00:00
- 2025-04-28T04:19:25+00:00
- 2025-04-28T04:19:25+00:00
- 2025-04-28T04:19:25+00:00
- 2025-04-28T04:19:25+00:00
- 2025-04-26T01:23:02+00:00
- 2025-04-24T13:52:54+00:00
- 2025-04-24T13:52:48+00:00
This is been happening for us in production for over a month, and it seems to be getting worse, with over half of the occurrences happening in the last seven days. We have not changed our Go client libraries for PubSub.
This is a known issue with the backend servers and is not specific to the Go Pub/Sub library or any specific language.
If you have a support ticket, I recommend filing a ticket there so this can tracked and triaged properly.
This should be resolved now but if you are still experiencing this, please continue to use support channels (tickets) to address.