<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Rest-API gives invalid xml response in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/rest-api-gives-invalid-xml-response/m-p/475632#M2976</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/4294"&gt;@JimmyHolland&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please kindly post in this discussion, if there is a fix in the future.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 21:53:20 GMT</pubDate>
    <dc:creator>morahman</dc:creator>
    <dc:date>2022-03-24T21:53:20Z</dc:date>
    <item>
      <title>Rest-API gives invalid xml response</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/rest-api-gives-invalid-xml-response/m-p/475288#M2973</link>
      <description>&lt;P&gt;&lt;SPAN&gt;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:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;response&amp;gt;&amp;lt;code&amp;gt;16&amp;lt;/code&amp;gt;&amp;lt;message&amp;gt;Invalid Credential&amp;lt;/message&amp;gt;&amp;lt;details&amp;gt;&amp;lt;entry @type="CauseInfo"&amp;gt;&amp;lt;causes&amp;gt;&amp;lt;entry&amp;gt;&amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;&amp;lt;module&amp;gt;panui_auth&amp;lt;/module&amp;gt;&amp;lt;description&amp;gt;Invalid Credential&amp;lt;/description&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/causes&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/details&amp;gt;&amp;lt;/response&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All XML parsers/validators refuse this XML document as being not well formed. Removing the @ character appears to fix the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Full URL Get: &lt;A href="https://usdeast01pano.hersheys.com/restapi/v9.1/Objects/Addresses?location=shared&amp;amp;output-format=xml" target="_blank" rel="noopener"&gt;https://usdeast01pano.hersheys.com/restapi/v9.1/Objects/Addresses?location=shared&amp;amp;output-format=xml&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Parameters (Key | Value) -- Already embedded in the get above: location | shared output-format | xml &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Non-Standard Headers (Key | Value): X-PAN-KEY | &amp;lt;Invalid API Key&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Response: &amp;lt;response&amp;gt;&amp;lt;code&amp;gt;16&amp;lt;/code&amp;gt;&amp;lt;message&amp;gt;Invalid Credential&amp;lt;/message&amp;gt;&amp;lt;details&amp;gt;&amp;lt;entry @type="CauseInfo"&amp;gt;&amp;lt;causes&amp;gt;&amp;lt;entry&amp;gt;&amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;&amp;lt;module&amp;gt;panui_auth&amp;lt;/module&amp;gt;&amp;lt;description&amp;gt;Invalid Credential&amp;lt;/description&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/causes&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/details&amp;gt;&amp;lt;/response&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 19:20:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/rest-api-gives-invalid-xml-response/m-p/475288#M2973</guid>
      <dc:creator>morahman</dc:creator>
      <dc:date>2022-03-23T19:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rest-API gives invalid xml response</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/rest-api-gives-invalid-xml-response/m-p/475426#M2975</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/196081"&gt;@morahman&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 07:22:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/rest-api-gives-invalid-xml-response/m-p/475426#M2975</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2022-03-24T07:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rest-API gives invalid xml response</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/rest-api-gives-invalid-xml-response/m-p/475632#M2976</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/4294"&gt;@JimmyHolland&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please kindly post in this discussion, if there is a fix in the future.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 21:53:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/rest-api-gives-invalid-xml-response/m-p/475632#M2976</guid>
      <dc:creator>morahman</dc:creator>
      <dc:date>2022-03-24T21:53:20Z</dc:date>
    </item>
  </channel>
</rss>

