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

Treat credential errors as retryable

Open coryan opened this issue 3 years ago • 3 comments

Most credentials need to periodically fetch an access token, often via some HTTP or gRPC request. These requests can fail. These failures are always retryable, even for non-idempotent operations, because the request never left the application.

At this time there is no way to distinguish credential failures from RPC failures. But with the recent work to populate ErrorInfo for local failures we could start telling this failures apparent. For example, we could add a gcloud-cpp/auth: true metadata entry to the error info.

We would need to change all the retry loops to treat these errors as transient failures.

coryan avatar Dec 01 '22 19:12 coryan

Revisit for 2023/Q4

coryan avatar Aug 02 '23 19:08 coryan

Revisit for 2024/Q2

coryan avatar Jan 10 '24 20:01 coryan

Revisit for 2024/Q4

scotthart avatar Jul 24 '24 19:07 scotthart