Skip to content

Splunk Streaming Command dict_reader.py attempts to iterate over none #110

@kkirsche

Description

@kkirsche

Hey guys,

For some reason Splunk trys to iterate over none and throws a TypeError: 'NoneType' object is not iterable in https://github.com/splunk/splunk-sdk-python/blob/master/splunklib/searchcommands/splunk_csv/dict_reader.py#L38. This is only reproducible in in certain environments it seems (happens in our production distributed cluster(s) but not in local test VMs). This causes the command to still execute but throws an error on the screen cause Splunk sent it no data.

I understand that it shouldn't do this yet still throws the error even though it enriches the data correctly. We were able to duplicate this occurrence with both a custom command and with the countmatches example code in our production testbed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions