# \[2.3.1\] Reload Twitter input conf =\> undefined method \`sample' for nil:NilClass

**URL:** <https://discuss.elastic.co/t/2-3-1-reload-twitter-input-conf-undefined-method-sample-for-nil-nilclass/65218>\
**Category:** Logstash\
**Created:** [November 7, 2016, 12:49pm UTC](https://discuss.elastic.co/t/2-3-1-reload-twitter-input-conf-undefined-method-sample-for-nil-nilclass/65218 "2016-11-07T12:49:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlegrand](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jlegrand](https://discuss.elastic.co/u/jlegrand)\
**Post date:** [November 7, 2016, 12:49pm UTC](https://discuss.elastic.co/t/2-3-1-reload-twitter-input-conf-undefined-method-sample-for-nil-nilclass/65218/1 "2016-11-07T12:49:13Z")

</div>

Hello

I'm using Logstash v2.3.1 with a Twitter input.  
I use --auto-reload option to dynamically modify and reload the Twitter input configuration.

If I change twitter input proxy settings (use\_proxy, proxy\_address and proxy\_port), i get an error on reload :

{:timestamp=\>"2016-11-07T13:31:16.003000+0100", :message=\>"undefined method `sample' for nil:NilClass", :exception=>#<NoMethodError: undefined method`sample' for nil:NilClass\>, :backtrace=\>["/home/cloud-user/logstash-2.3.1/vendor/bundle/jruby/1.9/gems/logstash-input-twitter-2.2.2/lib/logstash/inputs/twitter.rb:123:in `run'", "/home/cloud-user/logstash-2.3.1/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:342:in`inputworker'", "/home/cloud-user/logstash-2.3.1/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:336:in `start\_input'"], :options=\>nil, :level=\>:warn}

Does anybody already faced this issue ?

Thanks in advance for your help.

Julien

---

<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 5, 2016, 12:49pm UTC](https://discuss.elastic.co/t/2-3-1-reload-twitter-input-conf-undefined-method-sample-for-nil-nilclass/65218/2 "2016-12-05T12:49:18Z")

</div>

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