Skip to content

Commit

Permalink
pubsub/azpubsub: Ensure 401s are not retryable (google#3379)
Browse files Browse the repository at this point in the history
  • Loading branch information
vangent authored Jan 26, 2024
1 parent 1c8e1d8 commit 4e3dfbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pubsub/azuresb/azuresb.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,9 @@ func errorCode(err error) (gcerrors.ErrorCode, bool) {
if strings.Contains(err.Error(), "status code 404") {
return gcerrors.NotFound, false
}
if strings.Contains(err.Error(), "status code 401") {
return gcerrors.PermissionDenied, false
}
var cond amqp.ErrCond
var aderr *amqp.LinkError
var aerr *amqp.Error
Expand Down

0 comments on commit 4e3dfbe

Please sign in to comment.