Troubleshooting
Lost configuration field values after migration to version 4.x
When configuration fields for Add-ons created using the Add-on Builder are encrypted in version 3.x and the are again accessed using Add-on Builder version 4.x, the value for that configuration field is presented as ***** instead of the actual value. This issue only occurs when the Add-on Builder is upgraded from version 3.x to 4.x.
Steps to reproduce
- In the Add-on Builder version 3.x, a modular input is created using python code that contains any field whose value will be stored in the .conf file after encryption.
- The field is saved to the .conf file with the values from the user interface.
- The Add-on Builder is upgraded to version 4.x
- When the saved field value is accessed, the value is fetched as **** instead of the actual value.
To mitigate the issue
Reconfigure the configurations after upgrading to add-on builder version 4.x.
Error message when importing an Add-on in the Add-on Builder
The following error is seen when importing the Add-on in the Add-on Builder: The addon project cannot be imported because a problem occurred while loading the metadata
.
Conditions under which this issue may occur
An Add-on is created in Add-on Builder using the "VALIDATE & PACKAGE" option (which only downloads the installable .spl file) instead of the "EXPORT" option (which actually exports the project along with its metadata). The app project was deleted from the UI of Add-on builder and tried to import the .spl file for the same project.
To mitigate this issue
Re-create your add-on in the project using Add-on Builder.
'PROXY_TYPE_HTTP_NO_TUNNEL' message after upgrading from version 4.1.0 to version 4.1.1
When you try to create REST API inputs after upgrading from version 4.1.0 to version 4.1.1, the API error may be seen:
AttributeError: module 'socks' has no attribute 'PROXY_TYPE_HTTP_NO_TUNNEL'
To mitigate this issue
- Delete the socks.py files present under the locations:
- $SPLUNK_HOME/etc/apps/<YOUR_ADDON>/bin/ta_<your_addon>/aob_py3/socks.py
- $SPLUNK_HOME/etc/apps/splunk_app_addon-builder/bin/ta_generator/resources_lib/aob_py3/socks.py
- Create the input again.
Python helper functions | What's new |
This documentation applies to the following versions of Splunk® Add-on Builder: 4.1.4, 4.1.5
Feedback submitted, thanks!