Plain Java API : findWorkItemById() is throwing CRJAZ2942E A request from this server to another server could not be completed. The other server returned a 406 HTTP error with this error text: Not Acceptable.
Hi Team,
We are using findWorkItemById() method from com.ibm.team.workitem.common.internal.WorkItemCommon class. This API is working fine for most of the workitems however it is failing for few worktiems with the following error:
CRJAZ2942E A request from this server to another server could not be completed. The other server returned a 406 HTTP error with this error text: Not Acceptable.
I have tried to check if there are any differences in the workitems, but there are no differences from the ones that are working with the ones throwing this exception.
I tried the API with workItemClient.findWorkItemById(CrId, IWorkItem.FULL_PROFILE, monitor); DEFAULT_PROFILE and SMALL_PROFILE
in all 3 cases it is failing for the same workitems with the above error.
What could have gone wrong here ? Please assist.
Thanks in advance.