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 — 400 Bad Request on Storage.copy · Issue #1237 · googleapis/google-cloud-java

400 Bad Request on Storage.copy #1237

New issue
Copy link
New issue
Copy link
Closed
Closed
400 Bad Request on Storage.copy#1237
Copy link
Assignees
mziccard
Labels
api: storageIssues related to the Cloud Storage API.

Description

@mziccard
mziccard
opened on Sep 9, 2016
Issue body actions

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 Request
No file found in request.

The code that causes the error is the following:

String sourceBlobName = "test-copy-blob-source";
BlobId source = BlobId.of(BUCKET, sourceBlobName);
ImmutableMap<String, String> metadata = ImmutableMap.of("k", "v");
BlobInfo blob = BlobInfo.builder(source)
    .contentType(CONTENT_TYPE)
    .metadata(metadata)
    .build();
Blob remoteBlob = storage.create(blob, BLOB_BYTE_CONTENT);
assertNotNull(remoteBlob);
String targetBlobName = "test-copy-blob-target";
Storage.CopyRequest req = Storage.CopyRequest.of(source, BlobId.of(BUCKET, targetBlobName));
CopyWriter copyWriter = storage.copy(req); // Exception thrown here

What's weird is that we never experienced this error before today and it does not occur systematically. @Capstan any idea?

Activity

  1. mziccard
    added
    api: storageIssues related to the Cloud Storage API.
    on Sep 9, 2016
  2. Capstan commented on Sep 9, 2016

    @Capstan
    Capstan
    on Sep 9, 2016
    Contributor
    More actions

    For issues like this, the service team finds it super helpful if you can also specify one or more example requests' HTTP log, with request and response headers and body, and any timing information. Scrub the Authorization header or any OAuth token in the request if posting to public fora.

  3. mziccard commented on Sep 9, 2016

    @mziccard
    mziccard
    on Sep 9, 2016
    ContributorAuthor
    More actions

    For reference: the team in charge of this has been informed and the issue is being taken care of.

  4. mziccard commented on Sep 15, 2016

    @mziccard
    mziccard
    on Sep 15, 2016
    ContributorAuthor
    More actions

    This was fixed on the service-side. I'll reopen in case we experience again.

  5. mziccard
    closed this as completedon Sep 15, 2016
  6. JustinBeckwith
    assigned
    mziccard
    on Feb 1, 2021
  7. github-actions
    added a commit that references this issue on Jun 23, 2022

    build(deps): update dependency com.google.cloud:google-cloud-shared-c…

    ed3c332
  8. github-actions
    added a commit that references this issue on Sep 15, 2022

    chore(main): release 2.3.9-SNAPSHOT (#1237)

    3d9124f
  9. meltsufin
    added a commit that references this issue on Dec 22, 2025

    chore(main): release 3.14.0 (#1237)

    ce71d31
  10. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(main): release 0.130.29-alpha (#1237)

    8d53d62
  11. chingor13
    added 2 commits that reference this issue on Jan 22, 2026

    fix: remove deprecated `databaseId` field in DatastoreOptions (#1237)

    05e25e5

    chore(main): release 2.17.6 (#1232)

    0a965b9
  12. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore(main): release 1.20.0 (#1237)

    819b3cb
  13. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore(main): release 3.14.0 (googleapis#1237)

    e20877c
  14. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(main): release 1.20.0 (#1237)

    45f20e0
  15. suztomo
    added a commit that references this issue on Mar 23, 2026

    deps: update dependency com.google.cloud:google-cloud-spanner-bom to …

    8e85c07
  16. suztomo
    added a commit that references this issue on Mar 30, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    93c32a6
  17. lqiu96
    added a commit that references this issue on Apr 1, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    3c51e14
  18. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore(main): release 1.120.11 (#1237)

    d5788b4

    chore(main): release 1.120.11 (#1237)

    f34dd6b
  19. benjaminp
    added 2 commits that reference this issue on Jul 13, 2026

    docs(sample): remove unused native-image-support dependency (googleap…

    94afcbd

    chore(main): release 2.7.0 (googleapis#1228)

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

Metadata

Metadata

Assignees

  • @mziccard
    mziccard

Labels

api: storageIssues related to the Cloud Storage API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    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.