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:
Argument validation for scheme=myapp failed: The script returned with exit status 1
when i check the splunkd logs i see the following error:
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
when i inspect the network in chrome, i noticed this URL is throwing 400 and 500 server errors.
http://localhost:8000/en-US/splunkd/__raw/servicesNS/nobody/TA-myapp/TA_myapp_myapp?output_mode=json&count=100&sort_dir=asc&sort_key=name&offset=0&search=&_=1597973900868
The only place where i see TA_myapp_myapp show up are in these two files:
$splunk_home/etc/apps/TA-myapp/local/web.conf
$splunk_home/etc/apps/TA-myapp/local/restmap.conf
am i missing anything to get this endpoint to work?