enable debugging like in the documentation written:
If needed you can enabled debugging to splunkd.log in the script refresh.py by
setting myDebug='yes' on line 6
If this does not provide any useful message, try running the script from the CLI like this:
$SPLUNK_HOME/bin/splunk cmd python $SPLUNK_HOME/etc/apps/TA-debug-refresh/bin/refresh.py
Hope this helps ...
Looks like I'm not good in error capturing, the endpoint actually reloads - you can see it in the debug logs. But something after the reload makes the script think there was an error .... oh well debugging time