<?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: Splunk Extension for VSCode debugger error on custom command in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-receiving-Splunk-Extension-for-VSCode-debugger-error-on/m-p/592909#M10362</link>
    <description>&lt;P&gt;Already did that, but no response so far.&lt;BR /&gt;&lt;A href="https://github.com/splunk/vscode-extension-splunk/issues/54" target="_blank"&gt;https://github.com/splunk/vscode-extension-splunk/issues/54&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 13:41:07 GMT</pubDate>
    <dc:creator>joshiro</dc:creator>
    <dc:date>2022-04-07T13:41:07Z</dc:date>
    <item>
      <title>Why am I receiving Splunk Extension for VSCode debugger error on custom command</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-receiving-Splunk-Extension-for-VSCode-debugger-error-on/m-p/583121#M10360</link>
      <description>&lt;P&gt;The python debugger in the Splunk Extension does not work when debugging a custom command (reporting command). It runs fine without the debugger, but when using the debugger it crashes at the dispatch() function and returns the following traceback:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;Traceback (most recent call last):
  File "/opt/splunk/etc/apps/&amp;lt;app&amp;gt;/bin/&amp;lt;command&amp;gt;.py", line 149, in &amp;lt;module&amp;gt;
    dispatch(exportExcel, sys.argv, sys.stdin, sys.stdout, __name__)
  File "/opt/splunk/etc/apps/&amp;lt;app&amp;gt;/bin/../lib/splunklib/searchcommands/search_command.py", line 1144, in dispatch
    command_class().process(argv, input_file, output_file, allow_empty_input)
  File "/opt/splunk/etc/apps/&amp;lt;app&amp;gt;/bin/../lib/splunklib/searchcommands/search_command.py", line 450, in process
    self._process_protocol_v2(argv, ifile, ofile)
  File "/opt/splunk/etc/apps/&amp;lt;app&amp;gt;/bin/../lib/splunklib/searchcommands/search_command.py", line 788, in _process_protocol_v2
    self._record_writer.write_metadata(self._configuration)
  File "/opt/splunk/etc/apps/&amp;lt;app&amp;gt;/bin/../lib/splunklib/searchcommands/internals.py", line 813, in write_metadata
    self._write_chunk(metadata, '')
  File "/opt/splunk/etc/apps/&amp;lt;app&amp;gt;/bin/../lib/splunklib/searchcommands/internals.py", line 843, in _write_chunk
    self.write(start_line)
  File "/opt/splunk/etc/apps/&amp;lt;app&amp;gt;/bin/../lib/splunklib/searchcommands/internals.py", line 557, in write
    self.ofile.write(data)
  File "/opt/splunk/etc/apps/SA-VSCode/bin/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_io.py", line 40, in write
    r.write(s)
TypeError: write() argument must be str, not bytes&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The custom running code is similar to the python examples in the SDK repo in: &lt;A href="https://github.com/splunk/splunk-sdk-python/tree/master/examples/searchcommands_app/package/bin" target="_blank" rel="noopener"&gt;https://github.com/splunk/splunk-sdk-python/tree/master/examples/searchcommands_app/package/bin&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Any help ll be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-receiving-Splunk-Extension-for-VSCode-debugger-error-on/m-p/583121#M10360</guid>
      <dc:creator>joshiro</dc:creator>
      <dc:date>2022-04-07T15:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Extension for VSCode debugger error on custom command</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-receiving-Splunk-Extension-for-VSCode-debugger-error-on/m-p/584680#M10361</link>
      <description>&lt;P&gt;If you think that's the issue with the VS code extension you can submit the issue here -&amp;nbsp;&lt;A href="https://github.com/splunk/vscode-extension-splunk" target="_blank"&gt;https://github.com/splunk/vscode-extension-splunk&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 08:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-receiving-Splunk-Extension-for-VSCode-debugger-error-on/m-p/584680#M10361</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-02-11T08:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Extension for VSCode debugger error on custom command</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-receiving-Splunk-Extension-for-VSCode-debugger-error-on/m-p/592909#M10362</link>
      <description>&lt;P&gt;Already did that, but no response so far.&lt;BR /&gt;&lt;A href="https://github.com/splunk/vscode-extension-splunk/issues/54" target="_blank"&gt;https://github.com/splunk/vscode-extension-splunk/issues/54&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 13:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-receiving-Splunk-Extension-for-VSCode-debugger-error-on/m-p/592909#M10362</guid>
      <dc:creator>joshiro</dc:creator>
      <dc:date>2022-04-07T13:41:07Z</dc:date>
    </item>
  </channel>
</rss>

