Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

got 404 error when curl -u "user:password" -X GET -H "Content-Type: application/json" https://jira.c

David Vu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 15, 2019

Hi,

i got error messages complaining about my curl command

curl -u "user:password" -X GET -H "Content-Type: application/json" https://jira.corp.birchstreet.net/rest/api/2/issue/KEY-666

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /rest/api/2/issue/KEY-666 was not found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>

our Jira version: 7.11.1

Thanks

1 answer

0 votes
Thomas Deiler
Community Champion
July 17, 2019

Dear @David Vu ,

the REST path seems to be fine. Assuming "KEY-666" really exists and the user has the permission to view. Is it possible, that your Jira server has a different context?

instead of 

https://jira.corp.birchstreet.net

https://jira.corp.birchstreet.net/jira

???

So long

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events