GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — bad client behavior when loading a service account key or token · Issue #177 · googleapis/python-storage
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
bad client behavior when loading a service account key or token #177Copy link Copy link Closed Labels api: storageIssues related to the googleapis/python-storage API. DescriptionThe storage client doesn't behave correctly when a service account key or token is supplied via the There's two issues with the implementation:
Ideally, if If this is impossible due to being an API incompatibility, then a warning should be issued to tell the user that the provided credentials were ignored. Environment details
Steps to reproduce
Code exampleExample showing that it falls back to default search even when a key is provided: >>> from google.cloud import storage >>> from google.oauth2 import service_account >>> credentials = service_account.Credentials.from_service_account_file('gcs-test.json') >>> storage_client = storage.Client(credentials=credentials) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.7/site-packages/google/cloud/storage/client.py", line 111, in __init__ project=project, credentials=credentials, _http=_http File "/usr/local/lib/python3.7/site-packages/google/cloud/client.py", line 226, in __init__ _ClientProjectMixin.__init__(self, project=project) File "/usr/local/lib/python3.7/site-packages/google/cloud/client.py", line 178, in __init__ project = self._determine_default(project) File "/usr/local/lib/python3.7/site-packages/google/cloud/client.py", line 193, in _determine_default return _determine_default_project(project) File "/usr/local/lib/python3.7/site-packages/google/cloud/_helpers.py", line 186, in _determine_default_project _, project = google.auth.default() File "/usr/local/lib/python3.7/site-packages/google/auth/_default.py", line 321, in default raise exceptions.DefaultCredentialsError(_HELP_MESSAGE) google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see https://cloud.google.com/docs/authentication/getting-started To see the silent fallback, run this in an environment where you've done Activity
MetadataMetadataAssigneesLabelsapi: storageIssues related to the googleapis/python-storage API. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |