Splunk Dev

500 server errors for app endpoint

aa70627
Communicator

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?

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...