-
-
Notifications
You must be signed in to change notification settings - Fork 789
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
Error decoding content #55
Comments
It's better to ask such question at SO, because it's not related anyhow to gzipping algorythm. But you can be sure, that pako's output is 100% equal to one from zlib. |
Understood. Thanks @puzrin! I will ask on SO...have tried everything I could think of to solve the issue today. |
You probably need to pass ArrayBuffer to xhr, and make sure server side can really decode gzipped data. But i never did it, and can not say exactly how to implement gzipped http request from client. |
Thanks! I'll give that a go and keep plugging away at it. |
Just in case anyone comes across this issue. A nice solution to this problem was to write a simple Lambda function that gzip's an object on an S3 PUT event. |
I am trying to upload some gzipped json content to s3 and keep running into an ERR_CONTENT_DECODING_FAILED error, which would suggest there is something awry with the encoding. Hopefully there is something straightforward that I've missed.
Here is what I'm using on the client:
And the server to get the signed url:
The text was updated successfully, but these errors were encountered: