<?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 500 server errors for app endpoint in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/500-server-errors-for-app-endpoint/m-p/515350#M9185</link>
    <description>&lt;P&gt;I am using Splunk Add-on Builder and am trying to setup the config and input development. The config page seems to work. It takes in username and password. The input page load up and allows me to enter in the form, but as soon as I hit submit, it throws the following error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Argument validation for scheme=myapp failed: The script returned with exit status 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;when i check the splunkd logs i see the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;08-20-2020 20:52:50.557 -0400 ERROR AdminManagerExternal - Stack trace from python handler:\nTraceback (most recent call last):\n File "C:\Splunk\Python-2.7\Lib\site-packages\splunk\admin.py", line 131, in init\n hand.execute(info)\n File "C:\Splunk\Python-2.7\Lib\site-packages\splunk\admin.py", line 594, in execute\n if self.requestedAction == ACTION_CREATE: self.handleCreate(confInfo)\n File "C:\Splunk\etc\apps\TA-myapp\bin\ta_myapp\splunktaucclib\rest_handler\admin_external.py", line 40, in wrapper\n for entity in result:\n File "C:\Splunk\etc\apps\TA-myapp\bin\ta_myapp\splunktaucclib\rest_handler\handler.py", line 118, in wrapper\n raise RestError(exc.status, exc.message)\nRestError: REST Error [400]: Bad Request -- HTTP 400 Bad Request -- {"messages":[{"type":"ERROR","text":"Argument validation for scheme=myapp failed: The script returned with exit status 1."}]}\n&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i inspect the network in chrome, i noticed this URL is throwing 400 and 500 server errors.&lt;BR /&gt;http://localhost:8000/en-US/splunkd/__raw/servicesNS/nobody/TA-myapp/TA_myapp_myapp?output_mode=json&amp;amp;count=100&amp;amp;sort_dir=asc&amp;amp;sort_key=name&amp;amp;offset=0&amp;amp;search=&amp;amp;_=1597973900868&lt;/P&gt;&lt;P&gt;The only place where i see TA_myapp_myapp show up are in these two files:&lt;BR /&gt;$splunk_home/etc/apps/TA-myapp/local/web.conf&lt;BR /&gt;$splunk_home/etc/apps/TA-myapp/local/restmap.conf&lt;/P&gt;&lt;P&gt;am i missing anything to get this endpoint to work?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 02:03:04 GMT</pubDate>
    <dc:creator>aa70627</dc:creator>
    <dc:date>2020-08-21T02:03:04Z</dc:date>
    <item>
      <title>500 server errors for app endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/500-server-errors-for-app-endpoint/m-p/515350#M9185</link>
      <description>&lt;P&gt;I am using Splunk Add-on Builder and am trying to setup the config and input development. The config page seems to work. It takes in username and password. The input page load up and allows me to enter in the form, but as soon as I hit submit, it throws the following error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Argument validation for scheme=myapp failed: The script returned with exit status 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;when i check the splunkd logs i see the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;08-20-2020 20:52:50.557 -0400 ERROR AdminManagerExternal - Stack trace from python handler:\nTraceback (most recent call last):\n File "C:\Splunk\Python-2.7\Lib\site-packages\splunk\admin.py", line 131, in init\n hand.execute(info)\n File "C:\Splunk\Python-2.7\Lib\site-packages\splunk\admin.py", line 594, in execute\n if self.requestedAction == ACTION_CREATE: self.handleCreate(confInfo)\n File "C:\Splunk\etc\apps\TA-myapp\bin\ta_myapp\splunktaucclib\rest_handler\admin_external.py", line 40, in wrapper\n for entity in result:\n File "C:\Splunk\etc\apps\TA-myapp\bin\ta_myapp\splunktaucclib\rest_handler\handler.py", line 118, in wrapper\n raise RestError(exc.status, exc.message)\nRestError: REST Error [400]: Bad Request -- HTTP 400 Bad Request -- {"messages":[{"type":"ERROR","text":"Argument validation for scheme=myapp failed: The script returned with exit status 1."}]}\n&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i inspect the network in chrome, i noticed this URL is throwing 400 and 500 server errors.&lt;BR /&gt;http://localhost:8000/en-US/splunkd/__raw/servicesNS/nobody/TA-myapp/TA_myapp_myapp?output_mode=json&amp;amp;count=100&amp;amp;sort_dir=asc&amp;amp;sort_key=name&amp;amp;offset=0&amp;amp;search=&amp;amp;_=1597973900868&lt;/P&gt;&lt;P&gt;The only place where i see TA_myapp_myapp show up are in these two files:&lt;BR /&gt;$splunk_home/etc/apps/TA-myapp/local/web.conf&lt;BR /&gt;$splunk_home/etc/apps/TA-myapp/local/restmap.conf&lt;/P&gt;&lt;P&gt;am i missing anything to get this endpoint to work?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 02:03:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/500-server-errors-for-app-endpoint/m-p/515350#M9185</guid>
      <dc:creator>aa70627</dc:creator>
      <dc:date>2020-08-21T02:03:04Z</dc:date>
    </item>
  </channel>
</rss>

