Hi there,
I have installed sailpoint _identitynow app on a heavy forwarder. have configured relevant proxy, client ID and secret key too.
However when I am trying to run the app, I am getting following errors in the log :
2019-10-30 16:46:30,573 ERROR pid=24952 tid=MainThread file=base_modinput.py:log_error:307 | Get error when collecting events.
Traceback (most recent call last):
File "/opt/splunk/etc/apps/TA-sailpoint-identitynow-auditevent-add-on/bin/ta_sailpoint_identitynow_auditevent_add_on/modinput_wrapper/base_modinput.py", line 127, in stream_events
self.collect_events(ew)
File "/opt/splunk/etc/apps/TA-sailpoint-identitynow-auditevent-add-on/bin/sailpoint_identitynow_auditevent.py", line 72, in collect_events
input_module.collect_events(self, ew)
File "/opt/splunk/etc/apps/TA-sailpoint-identitynow-auditevent-add-on/bin/input_module_sailpoint_identitynow_auditevent.py", line 128, in collect_events
response = helper.send_http_request(audit_url, "GET", parameters=querystring, payload=None, headers=headers, cookies=None, verify=True, cert=None, timeout=None, use_proxy=use_proxy)
UnboundLocalError: local variable 'headers' referenced before assignment
Anyone faced the same before?
What am i doing wrong.
thanks
Sumit
Hi Sumit, thank you for your interest in the add-on.
The error messaging here is a little misleading - this actually indicates that the initial token request using your client credentials is not returning successfully.
If you have access to utility like Postman, you can test your request and credentials by making a request to the Oauth endpoint specified here: https://community.sailpoint.com/t5/IdentityNow-Wiki/IdentityNow-REST-APIs/ta-p/80132 - this should allow you to see what the error message being returned is, and to understand why the initial request is failing.