# timed out while attempting to query the sensu api for a stash

**URL:** <https://discourse.sensu.io/t/timed-out-while-attempting-to-query-the-sensu-api-for-a-stash/789>\
**Category:** Sensu Classic (EOL)\
**Created:** [March 24, 2017, 8:59pm UTC](https://discourse.sensu.io/t/timed-out-while-attempting-to-query-the-sensu-api-for-a-stash/789 "2017-03-24T20:59:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcos\_Dutra](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@Marcos\_Dutra](https://discourse.sensu.io/u/Marcos_Dutra)\
**Post date:** [March 24, 2017, 8:59pm UTC](https://discourse.sensu.io/t/timed-out-while-attempting-to-query-the-sensu-api-for-a-stash/789/1 "2017-03-24T20:59:50Z")

</div>

Is it normal receive everytime this message?

{“timestamp”:“2017-03-24T17:35:49.594755-0300”,“level”:“info”,“message”:“handler output”,“handler”:{“type”:“pipe”,“command”:"/opt/sensu/embedded/bin/handler-zendesk.rb",“name”:“zendesk”},“event”:{“id”:“c3c9d942-732b-4dd3-8ef3-a1e613a55f5f”},“output”:["/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:134:in `block in filter_silenced': Object#timeout is deprecated, use Timeout.timeout instead.\n/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:134:in`block in filter\_silenced’: Object#timeout is deprecated, use Timeout.timeout instead.\n/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:134:in `block in filter_silenced': Object#timeout is deprecated, use Timeout.timeout instead.\n/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-zendesk-0.0.3/bin/handler-zendesk.rb:72:in`handle’: Object#timeout is deprecated, use Timeout.timeout instead.\ntimed out while attempting to query the sensu api for a stash\ntimed out while attempting to query the sensu api for a stash\ntimed out while attempting to query the sensu api for a stash\n"]}

Thanks.

---

<div class="post-metadata">

**Author:** ![Eric\_Heydrick](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@Eric\_Heydrick](https://discourse.sensu.io/u/Eric_Heydrick)\
**Post date:** [March 24, 2017, 10:18pm UTC](https://discourse.sensu.io/t/timed-out-while-attempting-to-query-the-sensu-api-for-a-stash/789/2 "2017-03-24T22:18:48Z")

</div>

That warning is because the Object#timeout method was deprecated in Ruby 2.3. I just pushed a fix to sensu-plugins-zendesk and it’s in version [1.0.0](https://rubygems.org/gems/sensu-plugins-zendesk/versions/1.0.0) on rubygems.

> **···**
>
> On Fri, Mar 24, 2017 at 1:59 PM, Marcos Dutra [macdutra@gmail.com](mailto:macdutra@gmail.com) wrote:
> 
> > Is it normal receive everytime this message?
> 
> > {“timestamp”:“2017-03-24T17:35:49.594755-0300”,“level”:“info”,“message”:“handler output”,“handler”:{“type”:“pipe”,“command”:“/opt/sensu/embedded/bin/handler-zendesk.rb”,“name”:“zendesk”},“event”:{“id”:“c3c9d942-732b-4dd3-8ef3-a1e613a55f5f”},“output”:[“/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:134:in `block in filter_silenced': Object#timeout is deprecated, use Timeout.timeout instead.\n/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:134:in `block in filter\_silenced’: Object#timeout is deprecated, use Timeout.timeout instead.\n/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:134:in `block in filter_silenced': Object#timeout is deprecated, use Timeout.timeout instead.\n/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-zendesk-0.0.3/bin/handler-zendesk.rb:72:in `handle’: Object#timeout is deprecated, use Timeout.timeout instead.\ntimed out while attempting to query the sensu api for a stash\ntimed out while attempting to query the sensu api for a stash\ntimed out while attempting to query the sensu api for a stash\n”]}
> 
> > 
> 
> > Thanks.
> 
> >

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [November 22, 2018, 2:07am UTC](https://discourse.sensu.io/t/timed-out-while-attempting-to-query-the-sensu-api-for-a-stash/789/3 "2018-11-22T02:07:51Z")

</div>


