mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[GH-ISSUE #623] 404 when doing a resumable upload POST #110
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#110
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 @BigJerBD on GitHub (Nov 15, 2021).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/623
Image version : latest (v1.30.2)
I'm using apache beam to do resumable uploads into a fake gcs bucket (for testing purpose) , but I get this error
I also confirmed that the path
test1was present :It work with the real GCS service so I was wondering if the sent POST has any version compatibility error or if it isnt supported yet anyhow.
Thanks !
@fsouza commented on GitHub (Apr 22, 2022):
@BigJerBD hey, would you be able to share a snippet on how to reproduce the issue? I can definitely look into this some time this weekend or early next week.
@wwwjn commented on GitHub (Apr 22, 2022):
Hi @BigJerBD , I'm also trying to use Apache beam Filesystems to upload and download (Using Filesystems). But I keep getting error:
HttpError accessing <https://www.googleapis.com/resumable/upload/storage/v1/b/. It seems that it keeps accessing www.googleapis.com using Apache Beam, no matter how I set the environment variable. Could you please share a snippet how you do this? Thanks a lot!@BigJerBD commented on GitHub (Apr 22, 2022):
I'll try this weekend to share a snippet the error that I had .
It's been a while so I probably lost it and have to reproduce it again 😅
@wwwjn commented on GitHub (Apr 23, 2022):
Hi, I monkey-patch Apache Beam to replace
www.googleapis.comwith fake-gcs-server, then I got the same error with @BigJerBD (I got 404 !)And my script is:
test.py(Apache beam version :apache-beam==2.36.0)And the
gcsio.pyfile is (which is used for monkey-patch Apache Beam):And I got following error with resumable url:

And the following info is from the fake-gcs-docker:
Thanks a lot for your help and hope this will help!
@BigJerBD commented on GitHub (Apr 24, 2022):
@wwwjn thank you very much for the snippet! This is indeed something like that I did when I was doing to use fake-gcs-server.
Apache beam or not, since this were also giving a 404, I was also wondering if this feature was implemented within fake-gcs-server or not.
Thanks ! :)
@wwwjn commented on GitHub (May 10, 2022):
Hi @fsouza, is there any progress on this bug? Thanks a lot for your help!
@fsouza commented on GitHub (May 11, 2022):
Hey, I haven't had a chance to look at it yet, but I assume the fix should be simple. I'll check it out in the coming weeks.
@wwwjn commented on GitHub (May 11, 2022):
Thanks a lot! If there is anything I could do, feel free to just let me know!
@martinbjeldbak commented on GitHub (Apr 15, 2024):
For anyone like me coming from Google and simply want to override the URL for Apache Beam to point to fake-gcs-server url, there's an issue tracking this here: https://github.com/apache/beam/issues/21255
For now, the solution is still to patch the url in the test. This worked for me:
where
http://localhost:4443is the url of your fake-gcs-server instance