Active IQ Unified Manager Discussions

OCUM 9.5 REST API

lil_baby_james
5,482 Views

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.

1 ACCEPTED SOLUTION

gaurav_verma
5,348 Views

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"

 

View solution in original post

6 REPLIES 6

gaurav_verma
5,472 Views

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. 

 

lil_baby_james
5,468 Views

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.

gaurav_verma
5,440 Views

I am not aware any such logs/logfile. 

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

lil_baby_james
5,360 Views

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

gaurav_verma
5,349 Views

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"

 

lil_baby_james
5,336 Views

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

Public