-
Notifications
You must be signed in to change notification settings - Fork 42
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
upload_from_file() with content type "application/json" not working #161
Comments
tal-sim
changed the title
upload_from_file() with content type "application/json"
upload_from_file() with content type "application/json" not working
Apr 9, 2022
Thanks for the detailed report. I was also able to reproduce it without Docker:
|
The newest release v2022.04.09 should fix this. Thanks again for the great report! |
@oittaa Really awesome work! Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the method documentation of
gcp_storage_emulator.storage.Storage.add_to_resumable_upload
it expects parametercontent
to be of typebytes
, but it is actually passed not asbytes
(in my example, it is passed aslist
), becauserequest.data
(which is passed as parametercontent
) returnsjson.loads()
when content_type isapplication_json
.Given file
data.json
with content:[{"a": 1}]
Try to upload the file (using Postman for example):
The text was updated successfully, but these errors were encountered: