Forums

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

Vague Insight REST Error

Stephen Schaff
Contributor
October 4, 2018

I am trying to update an Insight object using the Insight REST api.  I tested it in Postman using a GET on this URL:

https://jira.myCompany.net/rest/insight/1.0/object/CM-600

That gave me back the details for that object.  (So I know I am connecting correctly.)

I then changed to a PUT call with this body:

{
"attributes": [{
"objectTypeAttributeId" : 174,
"objectAttributeValues" : [{
"value" : "Updated Name",
}]
}]
}

174 is the value in the Id column of the Name attribute for the object type that is CM-600. (Found in the Attributes view of the Object Type using the normal Insight UI.)

When I run this put, I get the following error:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<errorCollection>
<errorMessages>Something went wrong. Contact administrator</errorMessages>
<errors/>
</errorCollection>

First, "Something went wrong. Contact administrator" is a very poor error message if you happen to be the administrator.

I tried to check the logs.  Nothing about this was in any of the Insight logs.  I checked the atlassian-jira.log file and it had an exception and stack trace.  But the message was very unhelpful: 

2018-10-04 16:35:41,666 http-nio-8080-exec-21 ERROR 18773 995x69293x1 mi1l30 <<IP Address Removed the paste>>,<<Another IP Removed>> /rest/insight/1.0/object/CM-600 [c.r.j.p.i.c.w.a.r.exception.mapper.DefaultMapper] Unexpected exception was thrown while processing the request
javax.ws.rs.WebApplicationException

I have two questions:

  1. What can I do to trouble shoot this issue? 
    1. Is there somewhere else that Insight sticks information for failed calls that the "administrator" is supposed to know to go look at? (I want to be able to figure these kind of things out in the future.)
  2. Why am I getting an error?
    1. Is there something wrong with my PUT request?

1 answer

0 votes
Nader Nassif
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2018

Hi Stephen,

Can you paste the full log message for me please ? 

Cheers!

Nader

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events