REFUSED_STREAM (err 7) occurs when using REST API to create JIRA issue

Below error is responded to the shell when I executed the command line to create JIRA issue using REST API.


What does that mean ?
What should I check more in order to create issue without error ?
The command is just copied from the tutorial page and I modified it with my project information.

1 answer

1 accepted

For some reason curl is using HTTP/2. I don't think the Tomcat version supplied with JIRA supports that. Try adding the --http1.1 command line option. 

Thank you for the comment.

Response is changed, but I still don't get an expected result and I don't know what that means.


Your URL is incorrect - the server return 404. Are you sure you have "/jira" in the context path? Use the "-v" option for CURL to see verbose logs.

You are correct.   I finally got that resolved after removing "/jira" from ~/jira/rest/api/2/issue. I got confused because the tutorial page that contains "/jira".

But most of all --http1.1 is also really helpful. It seems that it is required when sending request using curl. Thank you so much.

Cool, glad to help. There is an interesting excerpt in the cURL documentation that explains what you see:

Since 7.47.0, the curl tool enables HTTP/2 by default for HTTPS connections.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,203 views 13 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot