Skip to content

500 Internal error when content is Gzip Encoded #150

Description

@bdalpe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions