<?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: 'HTTP/2 500 server'  Error while requesting XQL query result over API in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/420491#M875</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/186964"&gt;@Syed-Aqeel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite new to cortex, gone through the guide available on the site but nothing related to the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HTTP/2 500 server: openresty/1.15.8.2 date: Sun, 18 Jul 2021 05:26:48 GMT content-type: application/json content-length: 131 strict-transport-security: max-age=15724800; includeSubDomains x-frame-options: sameorigin {"reply": {"err_code": 500, "err_msg": "An error occurred while processing XDR public API", "err_extra": "query param is missing"}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thats my query : { "request_data": { "query_id": "0427e489ea6b42_2749_inv" } }&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help/directions !! &lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/186964"&gt;@Syed-Aqeel&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/179256"&gt;@etugriceri&lt;/a&gt;&amp;nbsp;in that your inquiry is missing critical information. At a minimum, we would need to know what API call URL you are attempting to use to understand the error being presented. Sharing that, or better yet, the entire API call code excluding sensitive information would be beneficial in understanding the error and providing you with the best guidance.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jul 2021 21:24:13 GMT</pubDate>
    <dc:creator>gjenkins</dc:creator>
    <dc:date>2021-07-19T21:24:13Z</dc:date>
    <item>
      <title>'HTTP/2 500 server'  Error while requesting XQL query result over API</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/420186#M871</link>
      <description>&lt;P&gt;hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite new to cortex, gone through the guide available on the site but nothing related to the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HTTP/2 500 server: openresty/1.15.8.2 date: Sun, 18 Jul 2021 05:26:48 GMT content-type: application/json content-length: 131 strict-transport-security: max-age=15724800; includeSubDomains x-frame-options: sameorigin {"reply": {"err_code": 500, "err_msg": "An error occurred while processing XDR public API", "err_extra": "query param is missing"}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thats my query : { "request_data": { "query_id": "0427e489ea6b42_2749_inv" } }&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help/directions !! &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 05:51:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/420186#M871</guid>
      <dc:creator>Syed-Aqeel</dc:creator>
      <dc:date>2021-07-18T05:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: 'HTTP/2 500 server'  Error while requesting XQL query result over API</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/420318#M874</link>
      <description>&lt;P&gt;Hello Syed,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess your payload is either not JSON object or has kind of escape char problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you share you query and also more detail about query method. (via python, curl etc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 13:07:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/420318#M874</guid>
      <dc:creator>etugriceri</dc:creator>
      <dc:date>2021-07-19T13:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: 'HTTP/2 500 server'  Error while requesting XQL query result over API</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/420491#M875</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/186964"&gt;@Syed-Aqeel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite new to cortex, gone through the guide available on the site but nothing related to the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HTTP/2 500 server: openresty/1.15.8.2 date: Sun, 18 Jul 2021 05:26:48 GMT content-type: application/json content-length: 131 strict-transport-security: max-age=15724800; includeSubDomains x-frame-options: sameorigin {"reply": {"err_code": 500, "err_msg": "An error occurred while processing XDR public API", "err_extra": "query param is missing"}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thats my query : { "request_data": { "query_id": "0427e489ea6b42_2749_inv" } }&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help/directions !! &lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/186964"&gt;@Syed-Aqeel&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/179256"&gt;@etugriceri&lt;/a&gt;&amp;nbsp;in that your inquiry is missing critical information. At a minimum, we would need to know what API call URL you are attempting to use to understand the error being presented. Sharing that, or better yet, the entire API call code excluding sensitive information would be beneficial in understanding the error and providing you with the best guidance.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 21:24:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/420491#M875</guid>
      <dc:creator>gjenkins</dc:creator>
      <dc:date>2021-07-19T21:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: 'HTTP/2 500 server'  Error while requesting XQL query result over API</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/421882#M902</link>
      <description>&lt;P&gt;HI im using curl.&amp;nbsp;&lt;BR /&gt;here's how I am trying it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;$results= '{&lt;BR /&gt;"request_data": {&lt;BR /&gt;"query_id": "'.$check.'"&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}';&lt;BR /&gt;$gR=curl_init();&lt;BR /&gt;curl_setopt($gR, CURLOPT_URL, '&lt;A href="https://api-*****.xdr.sg.paloaltonetworks.com/public_api/v1/xql/start_xql_query/" target="_blank"&gt;https://api-*****.xdr.sg.paloaltonetworks.com/public_api/v1/xql/start_xql_query/&lt;/A&gt;');&lt;BR /&gt;curl_setopt($gR,CURLOPT_POST,true);&lt;BR /&gt;curl_setopt($gR, CURLOPT_POSTFIELDS, $results);&lt;BR /&gt;curl_setopt($gR, CURLOPT_HEADER, true);&lt;BR /&gt;curl_setopt($gR, CURLOPT_HTTPHEADER, [&lt;BR /&gt;'x-xdr-auth-id:2',&lt;BR /&gt;'Authorization:xyzyxyzxyxyzyxyzxyzroCJWBbmlsQwqTKGDJcxgttnRWSSTd',&lt;BR /&gt;'Content-Type: application/json'&lt;BR /&gt;]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where $check is the execution id from 'Start an xql query' result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 23:39:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/421882#M902</guid>
      <dc:creator>Syed-Aqeel</dc:creator>
      <dc:date>2021-07-24T23:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: 'HTTP/2 500 server'  Error while requesting XQL query result over API</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/421883#M903</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/112774"&gt;@gjenkins&lt;/a&gt;&amp;nbsp;&amp;amp; &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/179256"&gt;@etugriceri&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Just figured out, I was passing the 'start an xql query' URL instead of&amp;nbsp; 'get an xql query result' request..&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Replaced:&amp;nbsp;&lt;SPAN&gt;curl_setopt($gR, CURLOPT_URL, '&lt;/SPAN&gt;&lt;A href="https://api-%2A%2A%2A%2A%2A.xdr.sg.paloaltonetworks.com/public_api/v1/xql/start_xql_query/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api-*****.xdr.sg.paloaltonetworks.com/public_api/v1/xql/start_xql_query/&lt;/A&gt;&lt;SPAN&gt;');&lt;/SPAN&gt;&lt;BR /&gt;to the following and it partially worked&amp;nbsp;&lt;BR /&gt;curl_setopt($gR, CURLOPT_URL, '&lt;A href="https://api-****.xdr.sg.paloaltonetworks.com/public_api/v1/xql/get_query_results/" target="_blank" rel="noopener"&gt;https://api-****.xdr.sg.paloaltonetworks.com/public_api/v1/xql/get_query_results/&lt;/A&gt;');&lt;BR /&gt;&lt;BR /&gt;but its partially fixed it because i'm getting a new https response, i-e 200&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTTP/2 200 server: openresty/1.15.8.2 date: Sun, 25 Jul 2021 21:57:48 GMT content-type: application/json content-length: 643 vary: Accept-Encoding strict-transport-security: max-age=15724800; includeSubDomains set-cookie: XSRF-TOKEN=roCJxyzxyzxzyxyzxyzyxyz&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 01:50:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/421883#M903</guid>
      <dc:creator>Syed-Aqeel</dc:creator>
      <dc:date>2021-07-26T01:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: 'HTTP/2 500 server'  Error while requesting XQL query result over API</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/421992#M907</link>
      <description>&lt;P&gt;Hello Syed,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thats right. You need to use two URL to getting results. I think you are getting result now. Your response has&amp;nbsp;&lt;SPAN&gt;"content-length: 643". You have something from API. As you can see below my result as 172 byte. This is for empty result.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you try manually query without using it in script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;here is the sample.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -v -X POST https://api-****.xdr.sg.paloaltonetworks.com/public_api/v1/xql/get_query_results/ \
-H "x-xdr-auth-id:xxxxx" \
-H "Authorization: xxxxxxx" \
-H "Content-Type:application/json" \
-d '{
"request_data": {
"query_id": "a409exxxx2f845_12739_inv",
"pending_flag": true,
"limit": 100,
"format": "json"
}
}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
* We are completely uploaded and fine
&amp;lt; HTTP/2 200
&amp;lt; server: openresty/1.15.8.2
&amp;lt; date: Mon, 26 Jul 2021 07:32:19 GMT
&amp;lt; content-type: application/json
&amp;lt; content-length: 172
&amp;lt; strict-transport-security: max-age=15724800; includeSubDomains
&amp;lt; set-cookie: XSRF-TOKEN=fh3H.....OCeeVnPev3KgsM..............YOzev2Xzv2Hl6L9cemgIFeMicNfqIj...........482SywxrHOV4ppHbv; secure;Path=/
&amp;lt; vary: Accept-Encoding
&amp;lt; x-frame-options: sameorigin
&amp;lt;
* Connection #0 to host api-xxxxx.xdr.eu.paloaltonetworks.com left intact
{"reply": {"status": "SUCCESS", "number_of_results": 0, "query_cost": {"1088703292": 0.0007808333333333334}, "remaining_quota": 7.499219166666666, "results": {"data": []}}}* Closing connection 0&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Jul 2021 08:10:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/http-2-500-server-error-while-requesting-xql-query-result-over/m-p/421992#M907</guid>
      <dc:creator>etugriceri</dc:creator>
      <dc:date>2021-07-26T08:10:40Z</dc:date>
    </item>
  </channel>
</rss>

