mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[GH-ISSUE #2003] gcloud CLI streaming uploads fail due to unsupported body-based resumable uploads #242
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#242
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @danieldanieltata on GitHub (Aug 19, 2025).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/2003
Problem
The gcloud CLI uses a different approach for resumable uploads when streaming data that was not previously supported by fake-gcs-server.
For example, when running:
The gcloud CLI performs body-based resumable uploads, where object metadata (name, content-type, etc.) is sent in the request body as JSON, rather than as query parameters or headers.
This caused streaming uploads from gcloud CLI to fail against fake-gcs-server.
Steps to Reproduce
Expected Behavior
Streaming uploads from gcloud CLI should work against fake-gcs-server without errors, just like they do with Google Cloud Storage.
Actual Behavior
The server rejects body-based resumable uploads, causing gcloud CLI streaming uploads to fail.
Additional Context
Solution
I've already implemented a fix for this issue and opened a PR: #1976.
The PR:
https://github.com/fsouza/fake-gcs-server/pull/1976