# Web socket input issue with certstream

**URL:** <https://discuss.elastic.co/t/web-socket-input-issue-with-certstream/224862>\
**Category:** Logstash\
**Created:** [March 24, 2020, 2:31pm UTC](https://discuss.elastic.co/t/web-socket-input-issue-with-certstream/224862 "2020-03-24T14:31:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfalab](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Alfalab](https://discuss.elastic.co/u/Alfalab)\
**Post date:** [March 24, 2020, 2:31pm UTC](https://discuss.elastic.co/t/web-socket-input-issue-with-certstream/224862/1 "2020-03-24T14:31:03Z")

</div>

hi,

here is a tail of log

[2020-03-24T10:41:35,144][WARN][logstash.inputs.websocket][main] websocket input client threw exception, restarting {:exception=\>#\<NoMethodError: undefined method `each' for #FTW::Response:0x4b712701\>}

[2020-03-24T10:41:36,178][WARN][logstash.inputs.websocket][main] websocket input client threw exception, restarting {:exception=\>#\<NoMethodError: undefined method `each' for #FTW::Response:0x7dc0bc54\>}

[2020-03-24T10:41:37,212][WARN][logstash.inputs.websocket][main] websocket input client threw exception, restarting {:exception=\>#\<NoMethodError: undefined method `each' for #FTW::Response:0x688030e2\>}

[2020-03-24T10:41:38,247][WARN][logstash.inputs.websocket][main] websocket input client threw exception, restarting {:exception=\>#\<NoMethodError: undefined method `each' for #FTW::Response:0x6d22c787\>}

[2020-03-24T10:41:39,276][WARN][logstash.inputs.websocket][main] websocket input client threw exception, restarting {:exception=\>#\<NoMethodError: undefined method `each' for #FTW::Response:0x54c89997\>}

here is the input part of config:

input {

websocket {

#id =\> "CertStream"

url =\> "ws://certstream.calidog.io/?param=Logstash"

type =\> "plain"

mode =\> "client"

codec =\> "json"

}

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 24, 2020, 2:45pm UTC](https://discuss.elastic.co/t/web-socket-input-issue-with-certstream/224862/2 "2020-03-24T14:45:56Z")

</div>

That looks similar to this [issue](https://github.com/logstash-plugins/logstash-input-websocket/issues/3), although the current version of the code [does test](https://github.com/logstash-plugins/logstash-input-websocket/blob/242fef09204a015dcddcc8a9a5d01cdf43a3261e/lib/logstash/inputs/websocket.rb#L73) whether it has an FTW::WebSocket or an FTW::Response before calling .each, so I would not expect the current code to hit this.

---

<div class="post-metadata">

**Author:** ![Alfalab](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Alfalab](https://discuss.elastic.co/u/Alfalab)\
**Post date:** [March 24, 2020, 2:52pm UTC](https://discuss.elastic.co/t/web-socket-input-issue-with-certstream/224862/3 "2020-03-24T14:52:54Z")

</div>

Thank you !!!

---

<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:** [April 21, 2020, 2:52pm UTC](https://discuss.elastic.co/t/web-socket-input-issue-with-certstream/224862/4 "2020-04-21T14:52:55Z")

</div>

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