Issue created using REST API return 201 garbled response

Shashi Gmail October 25, 2020

I'm creating Issue in Jira using REST api. The issue is getting created successfully but the response returned is garbled. See the sample request/response below.

The issue is very specific to a particular Jira server. The same command returns valid JSON response when executed against a different Jira server.

Any pointers resolving the issue is greatly appreciated.

Jira issue creation garbled response.png

1 answer

0 votes
poonam narwal December 1, 2020

Hi @Shashi Gmail , I am facing same Isssue. Have You got any solution for that?

David Hladky June 19, 2023

It has been a while, but for those like me, that will encounter the issue: 

do notice, that there is a header, that says

Content-Encoding: gzip

The input stream is compressed by the server so it looks like a garbage. Based on the tool you try to read with you might need to decompress it and the JSON will be there. E.g. in Java it is GZIPInputStream

Suggest an answer

Log in or Sign up to answer