-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 when doing a resumable upload POST #623
Comments
@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. |
Hi @BigJerBD , I'm also trying to use Apache beam Filesystems to upload and download (Using Filesystems). But I keep getting error: |
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 😅 |
Hi, I monkey-patch Apache Beam to replace
And the
And I got following error with resumable url:
Thanks a lot for your help and hope this will help! |
@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 ! :) |
Hi @fsouza, is there any progress on this bug? Thanks a lot for your help! |
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. |
Thanks a lot! If there is anything I could do, feel free to just let me know! |
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: apache/beam#21255 For now, the solution is still to patch the url in the test. This worked for me: from unittest import mock
@mock.patch.object(apache_beam.io.gcp.internal.clients.storage.StorageV1, "BASE_URL",
"http://localhost:4443/storage/v1/")
def test_gcs_source():
pass # test implementation here should now call the emulator where |
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
test1
was 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 !
The text was updated successfully, but these errors were encountered: