Skip to content
This repository was archived by the owner on May 10, 2018. It is now read-only.
This repository was archived by the owner on May 10, 2018. It is now read-only.

Improve error handling #28

@pvanisacker

Description

@pvanisacker

I ran into the following error when trying to parse restults:

.../.rvm/gems/ruby-1.9.3-p362@Forking_Monitoring/gems/splunk-sdk-ruby-1.0.0/lib/splunk-sdk-ruby/resultsreader.rb:189:in `resume': dead fiber called (FiberError)
    from /var/go/.rvm/gems/ruby-1.9.3-p362@Forking_Monitoring/gems/splunk-sdk-ruby-1.0.0/lib/splunk-sdk-ruby/resultsreader.rb:189:in `initialize'
    from ./run.rb:117:in `new'
    from ./run.rb:117:in `<main>'

The underlying error was because of the following response being received:

<response><messages><msg type='FATAL'>Invalid value &quot;&apos;-15m@m&apos;&quot; for time term &apos;earliest&apos;</msg></messages></response>

It would be nice if the Ruby SDK handles error in a nicer way. Because a 'dead fiber called' error is something completly different that receiving an error response from Splunk

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