splunk / splunk-sdk-csharp-pcl

Splunk's next generation C# SDK
https://dev.splunk.com/enterprise/docs/csharp
Apache License 2.0
64 stars 46 forks source link

ExportSearchResultsAsync returns InvalidDataException when no data #62

Closed drano closed 2 years ago

drano commented 7 years ago

After call ExportSearchResultsAsync and this search not found data, I try to get a list of results with var results = searchResultStream.AsEnumerable().ToList()

This error is raised: System.IO.InvalidDataException: Read where or was expected.

I am using package 2.2.5

shakeelmohamed commented 7 years ago

@drano can you show us an example program that reproduces this issue?