Title: AttributeError: url on Storage Exception when key not found · Issue #93 · googleapis/google-cloud-python · GitHub
Open Graph Title: AttributeError: url on Storage Exception when key not found · Issue #93 · googleapis/google-cloud-python
X Title: AttributeError: url on Storage Exception when key not found · Issue #93 · googleapis/google-cloud-python
Description: 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/stor...
Open Graph Description: 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 = sel...
X Description: 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 = sel...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/93
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: url on Storage Exception when key not found","articleBody":"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.\n\n``` py\nTraceback (most recent call last):\n [...]\n file_key = self.bucket.get_key(path)\n File \"gcloud/storage/bucket.py\", line 83, in get_key\n response = self.connection.api_request(method='GET', path=key.path)\n File \"gcloud/storage/connection.py\", line 212, in api_request\n raise exceptions.NotFoundError(response, content)\n File \"gcloud/storage/exceptions.py\", line 17, in __init__\n self.message = 'GET %s returned a 404.' % (response.url)\n File \"httplib2/__init__.py\", line 1680, in __getattr__\n raise AttributeError, name\nAttributeError: url\n```\n","author":{"url":"https://github.com/Zoramite","@type":"Person","name":"Zoramite"},"datePublished":"2014-05-19T06:25:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/93/google-cloud-python/issues/93"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a2baf154-7489-2eb3-1b44-c8a2cb4c0c38 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8982:4F9D9:6F5D75:958B28:6A4D3844 |
| html-safe-nonce | 217d52fa54d72f25821132132e57e2e96eced8fb84afecaa74f6a803d472bef5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTgyOjRGOUQ5OjZGNUQ3NTo5NThCMjg6NkE0RDM4NDQiLCJ2aXNpdG9yX2lkIjoiNjY5MzQ2NTg4NTU4MTg1MDY5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf7c91ebd46f6f75ca3de2311b2569311c42826c1202dbd9ef2fe22324db10df |
| hovercard-subject-tag | issue:33773524 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/93/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cbd68806515dfabbfb66a2bdc99df7fc57a99c9a3025b0f3e3f244e7ad00cc55/googleapis/google-cloud-python/issues/93 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cbd68806515dfabbfb66a2bdc99df7fc57a99c9a3025b0f3e3f244e7ad00cc55/googleapis/google-cloud-python/issues/93 |
| og:image:alt | 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 = sel... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Zoramite |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width