Title: 400 Bad Request on Storage.copy · Issue #1237 · googleapis/google-cloud-java · GitHub
Open Graph Title: 400 Bad Request on Storage.copy · Issue #1237 · googleapis/google-cloud-java
X Title: 400 Bad Request on Storage.copy · Issue #1237 · googleapis/google-cloud-java
Description: I started seeing this today. Sometimes our integration tests fail with the following error: ITStorageTest.testCopyBlob:683 » Storage 400 Bad Request Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Re...
Open Graph Description: I started seeing this today. Sometimes our integration tests fail with the following error: ITStorageTest.testCopyBlob:683 » Storage 400 Bad Request Caused by: com.google.api.client.googleapis.json...
X Description: I started seeing this today. Sometimes our integration tests fail with the following error: ITStorageTest.testCopyBlob:683 » Storage 400 Bad Request Caused by: com.google.api.client.googleapis.json...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/1237
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"400 Bad Request on Storage.copy","articleBody":"I started seeing this today. Sometimes our integration tests fail with the following error:\n\n``` java\nITStorageTest.testCopyBlob:683 » Storage 400 Bad Request\nCaused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: \n400 Bad Request\nNo file found in request.\n```\n\nThe code that causes the error is the following:\n\n``` java\nString sourceBlobName = \"test-copy-blob-source\";\nBlobId source = BlobId.of(BUCKET, sourceBlobName);\nImmutableMap\u003cString, String\u003e metadata = ImmutableMap.of(\"k\", \"v\");\nBlobInfo blob = BlobInfo.builder(source)\n .contentType(CONTENT_TYPE)\n .metadata(metadata)\n .build();\nBlob remoteBlob = storage.create(blob, BLOB_BYTE_CONTENT);\nassertNotNull(remoteBlob);\nString targetBlobName = \"test-copy-blob-target\";\nStorage.CopyRequest req = Storage.CopyRequest.of(source, BlobId.of(BUCKET, targetBlobName));\nCopyWriter copyWriter = storage.copy(req); // Exception thrown here\n```\n\nWhat's weird is that we never experienced this error before today and it does not occur systematically. @Capstan any idea?\n","author":{"url":"https://github.com/mziccard","@type":"Person","name":"mziccard"},"datePublished":"2016-09-09T15:25:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1237/google-cloud-java/issues/1237"}
| 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:025dd55b-bf91-2999-1062-6e8187fc6e78 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D50E:1BDCFF:A2446E:EE9B11:6A4E210F |
| html-safe-nonce | efe4dc010fa4e30ce4a8dcaceeb60e1ef0ff70a660f809b3a4c51d4db6b06c5c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTBFOjFCRENGRjpBMjQ0NkU6RUU5QjExOjZBNEUyMTBGIiwidmlzaXRvcl9pZCI6IjEzNDA2NDc2ODA3MjA2NDIzMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 80132ebced904afc1d60dc955dd80d0e3662d3e06905a889ff91a7b3f55a940f |
| hovercard-subject-tag | issue:176036858 |
| 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-java/1237/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3c388c5f54d0893ec7a5799d8624f1c24c0ae12738b18db750589a69ab7bbe27/googleapis/google-cloud-java/issues/1237 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3c388c5f54d0893ec7a5799d8624f1c24c0ae12738b18db750589a69ab7bbe27/googleapis/google-cloud-java/issues/1237 |
| og:image:alt | I started seeing this today. Sometimes our integration tests fail with the following error: ITStorageTest.testCopyBlob:683 » Storage 400 Bad Request Caused by: com.google.api.client.googleapis.json... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mziccard |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| 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 | 5fe497b4815fcce3df76c0e246faa739a82c3124 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width