The error message when clientViaApplicationDefaultCredentials
fallbacks to reading metadata
servers (and failing) is cryptic
#572
Labels
Context for this issue: invertase/dart_firebase_admin#6
It appears that if a user tries to create a client with
clientViaApplicationDefaultCredentials
, yet have neither the environment norgcloud/application_default_credentials.json
setup, thengoogle_apis_auth
fallbacks to reaching out tometadata.google.internal
.The problem is that if that endpoint is unavailable (which is likely the case if the user made a mistake and did want to login using the other options), then we end-up with a "Failed host lookup: 'metadata.google.internal'" error.
This is likely confusing, and a better error message could make it more intuitive to understand what the issue is.
The text was updated successfully, but these errors were encountered: