Uploaded image for project: 'logstash'
  1. LOGSTASH-2245

Input imap - undefined method encode for nil:NilClass

    Details

    • Type: Bug/Feature
    • Status: New (View workflow)
    • Resolution: Unresolved
    • Affects versions: 1.4.1 (bugfix only)
    • Fix versions: None
    • Labels:
      None

      Description

      My initial test yielded the following stack dump.

      Pipeline started {:level=>:info, :file=>"logstash/pipeline.rb", :line=>"78"}
      A plugin had an unrecoverable error. Will restart this plugin.
        Plugin: <LogStash::Inputs::IMAP host=>"mx2.serversresort.com", user=>"giftulike", content_type=>"text/plain">                                                                                               
        Error: undefined method `encode' for nil:NilClass
        Exception: NoMethodError
        Stack: /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:155:in `transcode_to_utf8'
      /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:124:in `parse_mail'
      org/jruby/RubyArray.java:1613:in `each'
      /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:112:in `parse_mail'
      /srv/logstash-1.4.1/lib/logstash/codecs/plain.rb:36:in `decode'
      /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:105:in `parse_mail'
      /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:83:in `check_mail'
      org/jruby/RubyArray.java:1613:in `each'
      /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:80:in `check_mail'
      org/jruby/RubyArray.java:1653:in `each_slice'
      /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:78:in `check_mail'
      /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:67:in `run'
      org/jruby/RubyProc.java:271:in `call'
      /srv/logstash-1.4.1/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/interval.rb:11:in `interval'
      /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:66:in `run'
      /srv/logstash-1.4.1/lib/logstash/pipeline.rb:163:in `inputworker'
      /srv/logstash-1.4.1/lib/logstash/pipeline.rb:157:in `start_input' {:level=>:error, :file=>"logstash/pipeline.rb", :line=>"168"}
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Logstash Developers (Inactive)
                Reporter:
                Jason Kendall
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: