- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-23-2022 12:20 PM
When receiving an error from the Panorama REST API, the platform is responding with what appears to be an invalid XML document. Here is the data in question:
<response><code>16</code><message>Invalid Credential</message><details><entry @type="CauseInfo"><causes><entry><code>2</code><module>panui_auth</module><description>Invalid Credential</description></entry></causes></entry></details></response>
All XML parsers/validators refuse this XML document as being not well formed. Removing the @ character appears to fix the problem.
Full URL Get: https://usdeast01pano.hersheys.com/restapi/v9.1/Objects/Addresses?location=shared&output-format=xml
Parameters (Key | Value) -- Already embedded in the get above: location | shared output-format | xml
Non-Standard Headers (Key | Value): X-PAN-KEY | <Invalid API Key>
Response: <response><code>16</code><message>Invalid Credential</message><details><entry @type="CauseInfo"><causes><entry><code>2</code><module>panui_auth</module><description>Invalid Credential</description></entry></causes></entry></details></response>
03-24-2022 12:22 AM
Hi @morahman,
I can confirm I can see the same behaviour. I have raised a ticket with engineering to investigate further. Thanks for bringing this to our attention!
03-24-2022 02:53 PM
Thanks @JimmyHolland
Please kindly post in this discussion, if there is a fix in the future.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!