Data Infrastructure Management Software Discussions

OCUM 9.5 REST API

Hi, I'm trying to make a REST call to the elements I see in the swagger documentation, but I always receive this response:

 

500 Internal Server Error

{
      "url": "/rest/volumes",
      "message": "Could not find acceptable representation",
      "errorCode": "",
      "errorPayload": null

My Content-Type and Accept are set to 'application/json. Am I missing a header?

 

Thanks.

6 REPLIES 6

Re: OCUM 9.5 REST API

500 is a server side error. I hope your OCUM is working perfectly! 

Did you first try to get output in swagger itself? is it working there? Also you can check if SSL is the problem. 

 

Highlighted

Re: OCUM 9.5 REST API

Swagger is giving me back attributes with empty values. My SSL certificates appear to be functional. Is there a log file I can check to help me troubleshoot this?

 

Thanks.

Re: OCUM 9.5 REST API

I am not aware any such logs/logfile. 

I still suggest to check HTTPs certificates in OCUM configuration under setup/http certificates. 

Re: OCUM 9.5 REST API

The certs are working properly. Not sure what to troubleshoot next : /

Re: OCUM 9.5 REST API

I am on OCUM 9.4 and working perfectly, though my content-type is

"content-type": "application/vnd.netapp.object.inventory.hal+json;charset=UTF-8"

 

Re: OCUM 9.5 REST API

Yeah, that was the key. I needed to use the long jumble of content type. Thank you very much.

Forums