Hi,
We are trying to develop an application using JIRA Rest APIs.
We are trying to find user by username/accountId.
But if we provide invalid username/accountId, instead of error we are getting empty array with statusCode 200.
Is there any way to trace the error as this is not valid behavior and user might not able to trace out whether the request is successful or not.
Instance : On Cloud
Following is the req:
var options = {
'method': 'GET',
'url': '{{host}}/rest/api/2/user/search?username=invaliduser',
'headers': {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': Basic username:password
}
};
Following response is getting from endpoint:
StatusCode : 200
Body: []
Note : API behavior is same for OnPrem instance
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.