logstash-plugins / logstash-input-heroku

Apache License 2.0
8 stars 12 forks source link

Uninitialized constant Heroku::Client #4

Closed kamilczerw closed 8 years ago

kamilczerw commented 9 years ago

Hello I’m trying to run logstash with heroic input, but it doesn’t work. I tried everything and all the time I get error:

A plugin had an unrecoverable error. Will restart this plugin.
  Plugin: <LogStash::Inputs::Heroku app=>”my-app">
  Error: uninitialized constant Heroku::Client
  Exception: NameError
  Stack: org/jruby/RubyModule.java:2726:in `const_missing'
/home/vagrant/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/logstash-input-heroku-0.1.4/lib/logstash/inputs/heroku.rb:36:in `run'
/home/vagrant/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0-java/lib/logstash/pipeline.rb:177:in `inputworker'
/home/vagrant/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0-java/lib/logstash/pipeline.rb:171:in `start_input' {:level=>:error, :file=>"logstash/pipeline.rb", :line=>"182", :method=>"inputworker"}
org/jruby/RubyModule.java:2726:in `const_missing'
/home/vagrant/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/logstash-input-heroku-0.1.4/lib/logstash/inputs/heroku.rb:36:in `run'
/home/vagrant/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0-java/lib/logstash/pipeline.rb:177:in `inputworker'
/home/vagrant/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0-java/lib/logstash/pipeline.rb:171:in `start_input’

I’m logged in on heroku, I have java 8, I tried java 7 but the same error.

flekmatik commented 9 years ago

same problem for me, is this plugin working for someone? (so we could try to find root cause)

kamilczerw commented 9 years ago

Maybe it is connected to heroku version? Because when I changed namespace from require "heroku" to require "heroku/client" in https://github.com/logstash-plugins/logstash-input-heroku/blob/master/lib/logstash/inputs/heroku.rb everything works fine.

flekmatik commented 9 years ago

yes, you are correct, this fixes the issue for me too

vinnyoodles commented 8 years ago

Can this be tagged and released because I'm getting this error in v 2.0.4