GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — AttributeError: url on Storage Exception when key not found · Issue #93 · googleapis/google-cloud-python

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

New issue
Copy link
New issue
Copy link
Closed
#94
Closed
AttributeError: url on Storage Exception when key not found#93
#94
Copy link
Assignees
aliafshar
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.
Milestone
Storage Stable

Description

@Zoramite
Zoramite
opened on May 19, 2014
Issue body actions

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

Activity

Next
  1. Zoramite
    added
    bug
    on May 19, 2014
  2. aliafshar commented on May 19, 2014

    @aliafshar
    aliafshar
    on May 19, 2014
    Contributor
    More actions

    Thanks for this report. I'm having a look.

  3. aliafshar
    self-assigned this
    on May 19, 2014
  4. aliafshar
    added a commit that references this issue on May 19, 2014

    Don't assume that httplib2 responses contain any preset attributes, s…

    This issue will close once commit 4dd8f67 is merged into the 'master' branch.
    4dd8f67
  5. aliafshar commented on May 19, 2014

    @aliafshar
    aliafshar
    on May 19, 2014
    Contributor
    More actions

    It is actually a httplib2.Response instance, which is a dict with some dynamically looked up attributes. We can't guarantee it contains a name. Likely we should print the whole dict instead of trying to look up the url.

  6. aliafshar
    closed this as completedin #94on May 21, 2014
  7. jgeewax
    added this to the Storage Stable milestone on Jan 30, 2015
  8. jgeewax
    unassigned
    aliafshar
    on Jan 30, 2015
  9. jgeewax
    added this to the Storage Stable milestone on Jan 30, 2015
  10. yoshi-automation
    added
    🚨This issue needs some love.
    triage meI really want to be triaged.
    on Apr 7, 2020
  11. JustinBeckwith
    assigned
    aliafshar
    on Feb 1, 2021
  12. vchudnov-g
    added a commit that references this issue on Apr 19, 2023

    chore(main): release 1.3.0 (#93)

    30d0ee8
  13. parthea
    added a commit that references this issue on Apr 20, 2023

    chore: Migrate code from googleapis/python-ids into packages/google-c…

    90d8f68
  14. 107 remaining items

  15. parthea
    added 9 commits that reference this issue on Nov 24, 2025

    chore: Update CODEOWNERS (#93)

    0cd7b7f

    chore: release 0.4.2 (#93)

    8eddd84

    chore: release 1.6.0 (#93)

    f8696b5

    fix: update out-of-date comment in exceptions.py (#93)

    fc20894

    chore: add library type to .repo-metadata.json (#93)

    9557a6f

    docs: update intersphinx URLs for grpc and auth (#93)

    6379fce

    chore: release 2.1.2 (#164)

    998b46b

    chore(deps): Update Dependencies for pandas and pikepdf (#93)

    32d83f3

    Implement LocalStructuredProperty (#93)

    61f4144
  16. parthea
    added 5 commits that reference this issue on Mar 2, 2026

    fix: revert to silent fallback to pure-Python build (#93)

    15df43d

    update docs after release (#93)

    82e5d7c

    django: fix icontains and iexact lookups

    d19d535

    docs: update batch-usage reflect the correct usage (#93)

    6b8af7a

    fix: recover lost function arguments and argument types (#93)

    e9b6854
  17. ohmayr
    added a commit that references this issue on Mar 31, 2026

    fix: revert to silent fallback to pure-Python build (#93)

    fa6c57e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @aliafshar
    aliafshar

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

    Milestone

    • Storage Stable

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue 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.