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

grpc_credential_types failed with RST_STREAM

Open scotthart opened this issue 3 years ago • 1 comments

2022-08-04T14:57:59.038944000Z [DEBUG] <140618179250432> GenerateAccessToken() << google.iam.credentials.v1.GenerateAccessTokenRequest { name: "projects/-/serviceAccounts/iam-t...<truncated>..." scope: "https://www.googleapis.com/auth/...<truncated>..." lifetime { "1m" } } (./google/cloud/internal/log_wrapper.h:91)
2022-08-04T14:57:59.039576000Z [DEBUG] <140618179250432> GenerateAccessToken() >> status=INTERNAL: Received RST_STREAM with error code 2 (./google/cloud/internal/log_wrapper.h:94)
libc++abi: terminating with uncaught exception of type std::runtime_error: Error in non-idempotent operation GenerateAccessToken: Received RST_STREAM with error code 2
================================================================================
INFO: Elapsed time: 2.030s, Critical Path: 1.31s
INFO: 3 processes: 1 remote cache hit, 3 linux-sandbox.
INFO: Build completed, 1 test FAILED, 3 total actions
//examples:gcs2cbt_test                                                  PASSED in 1.2s
//examples:grpc_credential_types                                         FAILED in 1.0s
  /h/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/execroot/com_github_googleapis_google_cloud_cpp/bazel-out/k8-fastbuild/testlogs/examples/grpc_credential_types/test.log

https://storage.googleapis.com/cloud-cpp-community-publiclogs/logs/google-cloud-cpp/main/7e8bc7c22790a8cbbde211e618be08702afdab5c/fedora-36-xsan/log-f2b67b97-d978-4e15-ada0-a2b0a4d2dfab.txt

scotthart avatar Aug 04 '22 16:08 scotthart

It's weird to see RST_STREAM happen on a unary RPC. But who knows how that error propagates.

We do have google::cloud::internal::IsTransientInternalError(Status const& status), but we would have to teach the generator how to use it. https://github.com/googleapis/google-cloud-cpp/blob/f779bb99395bbdfe3aac51864ff2abf2a0b6dffc/google/cloud/internal/retry_policy.cc#L24-L38

dbolduc avatar Aug 04 '22 18:08 dbolduc

It has been 90d, closing.

coryan avatar Nov 09 '22 21:11 coryan