Skip to content

AttributeError: url on Storage Exception when key not found #93

@Zoramite

Description

@Zoramite

When attempting to get a key that does not exist the exception for the NotFoundError is trying to reference request.url which does not exist.

Traceback (most recent call last): [...] file_key = self.bucket.get_key(path) File "gcloud/storage/bucket.py", line 83, in get_key response = self.connection.api_request(method='GET', path=key.path) File "gcloud/storage/connection.py", line 212, in api_request raise exceptions.NotFoundError(response, content) File "gcloud/storage/exceptions.py", line 17, in __init__ self.message = 'GET %s returned a 404.' % (response.url) File "httplib2/__init__.py", line 1680, in __getattr__ raise AttributeError, name AttributeError: url

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions