IBM Support

json format error at curl command from Windows when attempt to get an online report from a Guardium collector

Troubleshooting


Problem

To get a report output from a Guardium collector by using the REST API, executed a curl command like: curl -k --header "Authorization: Bearer 17161940-3af8-430c-935f-53d0ba21124e" -i -H "Content-Type: application/json" -X POST -d '{"quey":"parameters"}' https://.:8443/restAPI/online_report But it results the following error on Winodws. {"ErrorCode":1,"ErrorMessage":"return data is not encoded in json format correctly"}

Symptom

json format error at curl command

[{"Product":{"code":"SSMPHH","label":"IBM Security Guardium"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Guardium Database Activity Monitor","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.1","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
16 June 2018

UID

swg21691351