Forums

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

404, Oops, you've found dead link

Pavan Gorthi October 8, 2018

I am receiving the below error when trying to use REST API to list the properties of a user. Can some one please help.

 

Below is the command used:

curl -D- -s -S -k -u abcd@xyz.com:1234 https://example.jira.com:8081/jira/rest/api/2/user/search?username=abcd@xyz.com no-check -H Content-Type: application/json

 

Error:

 

404

Oops, you've found a dead link.

  • Go back to the previous page
  • Go to the Home Page

Regards,

Pavan.

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 9, 2018

Your curl call does not actually indicate what kind of REST call you are making (GET, PUT, POST, etc). But I am also concerned that your headers are not in quotes like they are in the examples on https://developer.atlassian.com/server/jira/platform/basic-authentication/

Could you try to make your call look more like this example:

curl -D- -u username:password -X GET -H "Content-Type: application/json" http://localhost:8080/rest/api/2/issue/createmeta

Perhaps try this:

curl -D- -u username:password -X GET -H "Content-Type: application/json" https://example.jira.com:8081/jira/rest/api/2/user/search?username=abcd@xyz.co

 

And see if you get back some better results that way.

Suggest an answer

Log in or Sign up to answer