# NoMethodError in logstash-input-github plugin

**URL:** <https://discuss.elastic.co/t/nomethoderror-in-logstash-input-github-plugin/67063>\
**Category:** Logstash\
**Created:** [November 24, 2016, 7:45am UTC](https://discuss.elastic.co/t/nomethoderror-in-logstash-input-github-plugin/67063 "2016-11-24T07:45:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fiskeben](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fiskeben/32/13384_2.png) [@fiskeben](https://discuss.elastic.co/u/fiskeben)\
**Post date:** [November 24, 2016, 7:45am UTC](https://discuss.elastic.co/t/nomethoderror-in-logstash-input-github-plugin/67063/1 "2016-11-24T07:45:00Z")

</div>

Hi,

I'm testing out Logstash and the logstash-input-github plugin but I'm getting an error on incoming requests:

```
#<NoMethodError: undefined method `headers_' for #<FTW::Request:0x5a1bfcc2>>
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-github-3.0.1/lib/logstash/inputs/github.rb:32:in `run'
org/jruby/RubyProc.java:281:in `call'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/ftw-0.0.44/lib/ftw/webserver.rb:77:in `handle_request'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/ftw-0.0.44/lib/ftw/webserver.rb:59:in `handle_connection'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/ftw-0.0.44/lib/ftw/webserver.rb:29:in `run'

```

I'm using Docker to run Logstash with a simple configuration that takes input from GitHub and outputs it to `stdout`. My Dockerfile looks like this:

```
FROM logstash:latest

RUN logstash-plugin install logstash-input-github
COPY logstash.conf /logstash.conf

CMD ["-f", "/logstash.conf"]

```

And my configuration file looks like this:

```
input {
  github {
    port => 4455
    codec => "json"
  }
}

filter {
  
}

output {
  stdout {
    codec => "json"
  }
}

```

Can anyone tell me what's wrong here?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 24, 2016, 8:48am UTC](https://discuss.elastic.co/t/nomethoderror-in-logstash-input-github-plugin/67063/2 "2016-11-24T08:48:57Z")

</div>

Moved to #logstash

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 22, 2016, 8:49am UTC](https://discuss.elastic.co/t/nomethoderror-in-logstash-input-github-plugin/67063/3 "2016-12-22T08:49:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
