I have tried implementing this code for another REST input (a Cloudflare endpoint) and it does not work after the first page of results. The error I receive is below:
RESPONSE_HANDLER_INSTANCE(response,output,type,req_args,endpoint)
for result in output["result"]:
handle_output(r,r.text,response_type,req_args,endpoint)
self.__target(*self.__args, **self.__kwargs)
self.run()
File "/opt/splunk/etc/apps/rest_ta/bin/responsehandlers.py", line 171, in __call__
File "/opt/splunk/etc/apps/rest_ta/bin/rest.py", line 521, in do_run
File "/opt/splunk/etc/apps/rest_ta/bin/rest.py", line 616, in handle_output
File "/opt/splunk/lib/python2.7/threading.py", line 754, in run
File "/opt/splunk/lib/python2.7/threading.py", line 801, in __bootstrap_inner
Exception in thread Thread-1:
Traceback (most recent call last):
TypeError: 'NoneType' object is not iterable
I am guessing the inner loop is not getting some of the settings from the original input, specifically the HTTP header properties Cloudflare uses for authentication.
... View more