search cancel

Rest API response: API-1018 : Could not process the request

book

Article ID: 197134

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

Whenever I am doing a GET Rest API call I get the following response:

{"resourceId":null,"httpStatus":"404","errorMessage":"API-1018 : Could not process the request. Refer to error code for more details.","errorCode":"404"}

Why is this?

Cause

This is caused by the HTTP entry URL specified in the CSA contains a slash:

http://myserver.broadcom.net/

Resolution

Access to the NSA and ensure that the HTTP Entry URL does not contain a slash:

http://myserver.broadcom.net

 

Additional Information

Other symptoms of the issue.

When you go to Administration > General Settings > System Options check:

API URL http://myserver.mycompany.net//ppm/rest/v1
API Documentation URL http://myserver.mycompany.net//niku/rest/describe/index.html

You will notice a double slash on the URL. As you amend the CSA setting and remove the slash on the HTTP Entry URL, the double slash will disappear from the API URLs and you will not face the error any longer