Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Highlighted
AmitJ Contributor.
Contributor.
268 views

Unable To Setup REST APIs in 9.40.3006

We have HPSM version 9.40.3006. We have followed the documentation to setup the REST APIs correctly. Also attaching the screenshot of the configurations. The situation is that, through browser, we are able to accees the endpoint,  <server>:13089/SM/9/rest (which shows all the APIs) but NOT ABLE TO ACCESS <server>:13089/SM/9/rest/incidents. BOTH from browser and when tried via a REST request, we get the same error which is:

A CxmlAPIException was raised in native code. error -1. Error in executing script RestfulMain.processResourceError in executing script: Type Error: log has no properties, ReturnCode -1

Please help.

Tagging a few experts. Please excuse for the intrusion, if any. @lingyanmeng @MarcusReinhardt @BrenoAbreu

Screenshot 2018-08-07 13.06.00.png

0 Likes
3 Replies
Acclaimed Contributor.. Jacob Heubner Acclaimed Contributor..
Acclaimed Contributor..

Re: Unable To Setup REST APIs in 9.40.3006

No screenshots are attached.

Did you modify any ScriptLibrary records when you were trying to set this up?

0 Likes
AmitJ Contributor.
Contributor.

Re: Unable To Setup REST APIs in 9.40.3006

Many thanks, @Jacob Heubner

No, we did not modify any ScriptLibrary records.

Here is the screenshot - not sure why this did not show up earlier. Attached.

 

0 Likes
Acclaimed Contributor.. Jacob Heubner Acclaimed Contributor..
Acclaimed Contributor..

Re: Unable To Setup REST APIs in 9.40.3006

Ok, got the screenshots

The error message indicates an issue with one of the ScriptLibrary scripts - either one directly used by the REST APIs or one for the module you're creating the ticket in.

So, set up additional debugging on a servlet and make the REST call to that servlet.

There's information on setting this up in the help, but from the command prompt, something like

%sm%\RUN\sm -httpPort:13077 -httpsPort:13076 -RTM:3 -debugjavascript&colon;1 -debughttp:1 -RTM:3 

Then make your REST call on that debug node and check the log to see where the error comes from.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.