Skip to content

Commit e6e6757

Browse files
sorensenjstheacodes
authored andcommitted
Remove punctuation which becomes part of the url (#284)
In colab and likely other applications, the period is incorrectly bound into the url, which is then invalid and produces a 404 DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credential and re-run the application. For more information, please see https://developers.google.com/accounts/docs/application-default-credentials.
1 parent 42f773d commit e6e6757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/google-auth/google/auth/_default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
Could not automatically determine credentials. Please set {env} or \
4242
explicitly create credentials and re-run the application. For more \
4343
information, please see \
44-
https://developers.google.com/accounts/docs/application-default-credentials.
44+
https://developers.google.com/accounts/docs/application-default-credentials
4545
""".format(env=environment_vars.CREDENTIALS).strip()
4646

4747
# Warning when using Cloud SDK user credentials
@@ -51,7 +51,7 @@
5151
instead. If your application continues to use end user credentials from Cloud \
5252
SDK, you might receive a "quota exceeded" or "API not enabled" error. For \
5353
more information about service accounts, see \
54-
https://cloud.google.com/docs/authentication/."""
54+
https://cloud.google.com/docs/authentication/"""
5555

5656

5757
def _warn_about_problematic_credentials(credentials):

0 commit comments

Comments
 (0)