Splunk Dev

Error while saving information using setup.xml

jwhughes58
Contributor

I've got this in my default/setup.xml:

 

<setup>
   <block title="F5 API Gateway Key" endpoint="storage/passwords" entity="_new">
      <text>Enter F5 API Gateway Key User</text>
      <input field="gw_user">
         <label>F5 API Gateway Key Username (enter gw_key as the username)</label>
         <type>text</type>
      </input>
      <text>Enter F5 API Gateway Key</text>
      <input field="gw_key">
         <label>F5 API Gateway Key</label>
         <type>password</type>
      </input>
   </block>
   <block title="Username/Password" endpoint="storage/passwords" entity="_new">
      <text>Enter Username</text>
      <input field="name">
         <label>Username</label>
         <type>text</type>
      </input>
      <text>Enter Password</text>
      <input field="password">
         <label>Password</label>
         <type>password</type>
      </input>
   </block>
</setup>

 

I get this error when I enter data and try to save it:

 

Encountered the following error while trying to update: Error while posting to url=/servicesNS/nobody/TA-kp_f5_api_inputs/storage/passwords/

 

I'm not certain why I'm getting the error or how to resolve it.  Any suggestions?

TIA

Joe

Labels (2)
0 Karma

thellmann
Splunk Employee
Splunk Employee

Hi @jwhughes58 - sorry for not directly answering your question, but we're recommending that app developers migrate to using setup pages instead of setup.xml. You can learn more about setup pages here: https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/setuppage

You should also check out the weather_app_example in this repo: https://github.com/splunk/splunk-app-examples/

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!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2026-2027 SplunkTrust is officially open. If ...