Skip to content
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

500 Internal error when content is Gzip Encoded #150

Open
bdalpe opened this issue Sep 22, 2023 · 0 comments
Open

500 Internal error when content is Gzip Encoded #150

bdalpe opened this issue Sep 22, 2023 · 0 comments

Comments

@bdalpe
Copy link

bdalpe commented Sep 22, 2023

I'm getting an error "Unable to JSON encode payload. Error code: 5" when sending data that is gzip encoded to a self-hosted instance. I can't seem to figure out what is causing the issue. I've tried a number of Nginx configurations to try and decompress the data, but nothing seems to work.

Doesn't work:

echo '{"mydummy": "json"}' | gzip | curl -X POST -v -i --data-binary @- -H "Content-Encoding: gzip" https://<site>/<token>

Works:

echo '{"mydummy": "json"}' | gzip | curl -X POST -v -i --data-binary @- -H "Content-Encoding: gzip" https://webhook.site/<token>

and I see the "raw" data as Gzip encoded text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant