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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Think Like an Architect: Introducing the Splunk Certified Cybersecurity Defense ...

In cybersecurity, defenders respond to threats. Architects design the systems that stop them.    As ...

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...