Title: Silent Failure Uploading file to Bucket Configured as a Website · Issue #95 · googleapis/google-cloud-python · GitHub
Open Graph Title: Silent Failure Uploading file to Bucket Configured as a Website · Issue #95 · googleapis/google-cloud-python
X Title: Silent Failure Uploading file to Bucket Configured as a Website · Issue #95 · googleapis/google-cloud-python
Description: Testing uploading a file to a bucket it silently fails if the bucket is configured as a website. Here is the sample code being used: import gcloud.storage connection = gcloud.storage.get_connection('project-id', 'email@developer.gservice...
Open Graph Description: Testing uploading a file to a bucket it silently fails if the bucket is configured as a website. Here is the sample code being used: import gcloud.storage connection = gcloud.storage.get_connection...
X Description: Testing uploading a file to a bucket it silently fails if the bucket is configured as a website. Here is the sample code being used: import gcloud.storage connection = gcloud.storage.get_connection...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/95
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Silent Failure Uploading file to Bucket Configured as a Website","articleBody":"Testing uploading a file to a bucket it silently fails if the bucket is configured as a website. Here is the sample code being used:\n\n``` py\nimport gcloud.storage\nconnection = gcloud.storage.get_connection('project-id', 'email@developer.gserviceaccount.com', 'key-file.key')\nbucket = connection.get_bucket('some.website.com')\npath = 'answer.html'\nfile_key = bucket.new_key(path)\nfile_key.set_contents_from_string('42')\nkey = bucket.get_key(path)\nprint key.get_contents_as_string()\n```\n\nWhen I run this against a normal bucket the file is saved and read correctly. When run against a bucket that is configured as a website the upload silently fails and is unable to retrieve the value from the bucket to print.\n","author":{"url":"https://github.com/Zoramite","@type":"Person","name":"Zoramite"},"datePublished":"2014-05-20T15:24:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/95/google-cloud-python/issues/95"}
| 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:9593c432-6812-fbab-d0ed-5b07f8dc5c5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE0C:39DBD7:39B7CF:4EF8F5:6A4D384E |
| html-safe-nonce | 49d547b3095301d8170e7c27b30c11800a594f59077916059aadebed53fd01be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTBDOjM5REJENzozOUI3Q0Y6NEVGOEY1OjZBNEQzODRFIiwidmlzaXRvcl9pZCI6IjY1OTQyNzEzMDk0ODMyOTI3NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dafd2ec5875d3f6b6f1cea315e920ebbcd344e3a04291cd071b42a20fc3d92f3 |
| hovercard-subject-tag | issue:33899295 |
| 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/95/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bac0fb5587ca872a0ce8982ffd1a5d1499b6b38307215915855b9e7827d53688/googleapis/google-cloud-python/issues/95 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bac0fb5587ca872a0ce8982ffd1a5d1499b6b38307215915855b9e7827d53688/googleapis/google-cloud-python/issues/95 |
| og:image:alt | Testing uploading a file to a bucket it silently fails if the bucket is configured as a website. Here is the sample code being used: import gcloud.storage connection = gcloud.storage.get_connection... |
| 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