Skip to content

Commit

Permalink
Remove punctuation which becomes part of the url (#284)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sorensenjs authored and theacodes committed Aug 13, 2018
1 parent 4997be1 commit 62cfc6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/auth/_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
Could not automatically determine credentials. Please set {env} or \
explicitly create credentials and re-run the application. For more \
information, please see \
https://developers.google.com/accounts/docs/application-default-credentials.
https://developers.google.com/accounts/docs/application-default-credentials
""".format(env=environment_vars.CREDENTIALS).strip()

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


def _warn_about_problematic_credentials(credentials):
Expand Down

0 comments on commit 62cfc6d

Please sign in to comment.