Skip to content
Discussion options

You must be logged in to vote

That string isn't ours. At v2.22.0, git grep "fetching oauth2 token" over the whole tree returns nothing. It's gRPC core, in src/core/lib/security/credentials/oauth2/oauth2_credentials.cc:

    } else {
      auto err = GRPC_ERROR_CREATE_REFERENCING(
          "Error occurred when fetching oauth2 token.", &error, 1);
      pending_request->result = grpc_error_to_absl_status(err);
    }

and the macro hardcodes the code:

#define GRPC_ERROR_CREATE_REFERENCING(desc, errs, count)                      \
  grpc_status_create(absl::StatusCode::kUnknown, desc, DEBUG_LOCATION, count, \
                     errs)

UNKNOWN there isn't a mapping of the underlying failure, it's a literal. That's the whol…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dharanad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants