<?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 ERROR ChunkedExternProcessor - Failed to find newline while reading transport header. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-ChunkedExternProcessor-Failed-to-find-newline-while/m-p/426348#M95078</link>
    <description>&lt;P&gt;I followed the instructions &lt;A href="http://dev.splunk.com/view/SP-CAAAFFT" target="_blank"&gt;http://dev.splunk.com/view/SP-CAAAFFT&lt;/A&gt;  and created a custom search command 'snincident' ( app name is SNow-incident-creation and test.py has all the code)&lt;BR /&gt;
I am making a servicenow api call for incident creation. &lt;BR /&gt;
when I do the &lt;CODE&gt;| snincident&lt;/CODE&gt; all i see are errors  below&lt;/P&gt;

&lt;P&gt;06-14-2019 12:16:49.551 INFO  ChunkedExternProcessor - Running process: /opt/splunk/bin/python /opt/splunk/etc/apps/SNow-incident-creation/bin/test.py&lt;BR /&gt;
06-14-2019 12:16:50.790 ERROR ChunkedExternProcessor - Failed to find newline while reading transport header.&lt;BR /&gt;
06-14-2019 12:16:50.819 ERROR ChunkedExternProcessor - Error in 'snincident' command: External search command exited unexpectedly.&lt;BR /&gt;
06-14-2019 12:16:50.819 INFO  SearchParser - PARSING: | snincident&lt;BR /&gt;
06-14-2019 12:16:50.820 INFO  ChunkedExternProcessor - Running process: /opt/splunk/bin/python /opt/splunk/etc/apps/SNow-incident-creation/bin/test.py&lt;BR /&gt;
06-14-2019 12:16:52.458 ERROR ChunkedExternProcessor - Failed to find newline while reading transport header.&lt;BR /&gt;
06-14-2019 12:16:52.458 ERROR ChunkedExternProcessor - Error in 'snincident' command: External search command exited unexpectedly.&lt;BR /&gt;
06-14-2019 12:16:52.458 INFO  SearchPhaseGenerator - Failed to create phases using AST:Error in 'snincident' command: External search command exited unexpectedly.. Falling back to 2 phase mode.&lt;/P&gt;

&lt;P&gt;When I run the command on command line with python for splunk it works :&lt;BR /&gt;
-bash-4.2$  /opt/splunk/bin/python /opt/splunk/etc/apps/SNow-incident-creation/bin/test.py&lt;BR /&gt;
{u'result': {u'ticket_number': u'INC3010096', u'ticket_link': u'&lt;A href="https://snow-link/nav_to.do?uri=/incident.do?sys_id=520b7b95db4e" target="_blank"&gt;https://snow-link/nav_to.do?uri=/incident.do?sys_id=520b7b95db4e&lt;/A&gt;', u'ticket_id': u'520b7b9', u'get_ticket_record_api': u'&lt;A href="https://snow-link/api/now/table/incident/520b7b95db4e77c42bf5453f2996197d?sysparm_display_value=true&amp;amp;sysparm_exclude_reference_link=true'%7D" target="_blank"&gt;https://snow-link/api/now/table/incident/520b7b95db4e77c42bf5453f2996197d?sysparm_display_value=true&amp;amp;sysparm_exclude_reference_link=true'}&lt;/A&gt;}&lt;/P&gt;

&lt;P&gt;I am not sure how to fix this issue.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:56:25 GMT</pubDate>
    <dc:creator>suser2019</dc:creator>
    <dc:date>2020-09-30T00:56:25Z</dc:date>
    <item>
      <title>ERROR ChunkedExternProcessor - Failed to find newline while reading transport header.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-ChunkedExternProcessor-Failed-to-find-newline-while/m-p/426348#M95078</link>
      <description>&lt;P&gt;I followed the instructions &lt;A href="http://dev.splunk.com/view/SP-CAAAFFT" target="_blank"&gt;http://dev.splunk.com/view/SP-CAAAFFT&lt;/A&gt;  and created a custom search command 'snincident' ( app name is SNow-incident-creation and test.py has all the code)&lt;BR /&gt;
I am making a servicenow api call for incident creation. &lt;BR /&gt;
when I do the &lt;CODE&gt;| snincident&lt;/CODE&gt; all i see are errors  below&lt;/P&gt;

&lt;P&gt;06-14-2019 12:16:49.551 INFO  ChunkedExternProcessor - Running process: /opt/splunk/bin/python /opt/splunk/etc/apps/SNow-incident-creation/bin/test.py&lt;BR /&gt;
06-14-2019 12:16:50.790 ERROR ChunkedExternProcessor - Failed to find newline while reading transport header.&lt;BR /&gt;
06-14-2019 12:16:50.819 ERROR ChunkedExternProcessor - Error in 'snincident' command: External search command exited unexpectedly.&lt;BR /&gt;
06-14-2019 12:16:50.819 INFO  SearchParser - PARSING: | snincident&lt;BR /&gt;
06-14-2019 12:16:50.820 INFO  ChunkedExternProcessor - Running process: /opt/splunk/bin/python /opt/splunk/etc/apps/SNow-incident-creation/bin/test.py&lt;BR /&gt;
06-14-2019 12:16:52.458 ERROR ChunkedExternProcessor - Failed to find newline while reading transport header.&lt;BR /&gt;
06-14-2019 12:16:52.458 ERROR ChunkedExternProcessor - Error in 'snincident' command: External search command exited unexpectedly.&lt;BR /&gt;
06-14-2019 12:16:52.458 INFO  SearchPhaseGenerator - Failed to create phases using AST:Error in 'snincident' command: External search command exited unexpectedly.. Falling back to 2 phase mode.&lt;/P&gt;

&lt;P&gt;When I run the command on command line with python for splunk it works :&lt;BR /&gt;
-bash-4.2$  /opt/splunk/bin/python /opt/splunk/etc/apps/SNow-incident-creation/bin/test.py&lt;BR /&gt;
{u'result': {u'ticket_number': u'INC3010096', u'ticket_link': u'&lt;A href="https://snow-link/nav_to.do?uri=/incident.do?sys_id=520b7b95db4e" target="_blank"&gt;https://snow-link/nav_to.do?uri=/incident.do?sys_id=520b7b95db4e&lt;/A&gt;', u'ticket_id': u'520b7b9', u'get_ticket_record_api': u'&lt;A href="https://snow-link/api/now/table/incident/520b7b95db4e77c42bf5453f2996197d?sysparm_display_value=true&amp;amp;sysparm_exclude_reference_link=true'%7D" target="_blank"&gt;https://snow-link/api/now/table/incident/520b7b95db4e77c42bf5453f2996197d?sysparm_display_value=true&amp;amp;sysparm_exclude_reference_link=true'}&lt;/A&gt;}&lt;/P&gt;

&lt;P&gt;I am not sure how to fix this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-ChunkedExternProcessor-Failed-to-find-newline-while/m-p/426348#M95078</guid>
      <dc:creator>suser2019</dc:creator>
      <dc:date>2020-09-30T00:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR ChunkedExternProcessor - Failed to find newline while reading transport header.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-ChunkedExternProcessor-Failed-to-find-newline-while/m-p/426349#M95079</link>
      <description>&lt;P&gt;any help please.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 21:05:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-ChunkedExternProcessor-Failed-to-find-newline-while/m-p/426349#M95079</guid>
      <dc:creator>suser2019</dc:creator>
      <dc:date>2019-06-27T21:05:51Z</dc:date>
    </item>
  </channel>
</rss>

