All Apps and Add-ons

Custom input field won't load when empty on Initial App install- How to resolve?

greynoisebrad
Observer

We recently updated our Splunk App to use the latest SDK, and since then, we've been running into this issue where our custom configuration page (where users enter an API key for our service) fails to load with the below error.  The error seems to indicate that the issue is with the field having no value at the initial install (which has always been the default state).  Any suggestions on how we can address this?

 

{"messages":[{"type":"ERROR","text":"Unexpected error \"<class 'splunktaucclib.rest_handler.error.RestError'>\" from python handler: \"REST Error [500]: Internal Server Error -- Traceback (most recent call last):\n File \"/opt/splunk/etc/apps/SA-GreyNoise/bin/SA_GreyNoise/splunktaucclib/rest_handler/handler.py\", line 124, in wrapper\n for name, data, acl in meth(self, *args, **kwargs):\n File \"/opt/splunk/etc/apps/SA-GreyNoise/bin/SA_GreyNoise/splunktaucclib/rest_handler/handler.py\", line 303, in _format_response\n masked = self.rest_credentials.decrypt_for_get(name, data)\n File \"/opt/splunk/etc/apps/SA-GreyNoise/bin/SA_GreyNoise/splunktaucclib/rest_handler/credentials.py\", line 203, in decrypt_for_get\n data[field_name] = clear_password[field_name]\nTypeError: 'NoneType' object is not subscriptable\n\". See splunkd.log/python.log for more details."}]}

 

Labels (2)
Tags (3)
0 Karma

Roy_9
Motivator

@greynoisebrad Can you take a look at the below doc?

https://github.com/puppetlabs/SplunkTAforPuppetEnterprise/issues/2

 

Looks like some one has a similar kind of issue and removing passwords.conf fixed the issue for them.

0 Karma

Roy_9
Motivator

@greynoisebrad Hello,

Is your updated app compatible with python3 since we faced similar issues with older version.

 

Thanks

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@greynoisebrad - It seems like a python error you need to fix in your Add-on. (Maybe because it was using an old syntax which might get changed.)

 

I hope this helps!! Karma/upvote would be appreciated!!!

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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...