flowdock / hubot-flowdock

Flowdock adapter for Hubot chat bot
94 stars 60 forks source link

Occassional Crashes #73

Closed HaroldPutman closed 9 years ago

HaroldPutman commented 9 years ago

Our Hubot occasionally crashes with this error. I have not figured out what the circumstances are that cause it.

ERROR TypeError: Object #<Stream> has no method 'off'
  at Flowdock.reconnect (/webserver/kourou/koubot/node_modules/hubot-flowdock/src/flowdock.coffee:80:5, <js>:124:19)
  at Stream.<anonymous> (/webserver/kourou/koubot/node_modules/hubot-flowdock/src/flowdock.coffee:95:9, <js>:164:17)
  at Stream.emit (events.js:95:17)
  at JSONStream.<anonymous> (/webserver/kourou/koubot/node_modules/hubot-flowdock/node_modules/flowdock/lib/stream.js:67:28)
  at JSONStream.emit (events.js:95:17)
  at JSONStream.write (/webserver/kourou/koubot/node_modules/hubot-flowdock/node_modules/flowdock/lib/json_stream.js:30:14)
  at Request.ondata (stream.js:51:26)
  at Request.emit (events.js:95:17)
  at IncomingMessage.<anonymous> (/webserver/kourou/koubot/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:619:14)
  at IncomingMessage.emit (events.js:95:17)
  at IncomingMessage.<anonymous> (_stream_readable.js:748:14)
  at IncomingMessage.emit (events.js:92:17)
  at emitReadable_ (_stream_readable.js:410:10)
  at emitReadable (_stream_readable.js:406:5)
  at readableAddChunk (_stream_readable.js:168:9)
  at IncomingMessage.Readable.push (_stream_readable.js:130:10)
  at HTTPParser.parserOnBody [as onBody] (http.js:142:22)
  at CleartextStream.socketOnData [as ondata] (http.js:1583:20)
  at CleartextStream.read [as _read] (tls.js:511:12)
  at CleartextStream.Readable.read (_stream_readable.js:323:10)
  at EncryptedStream.write [as _write] (tls.js:366:25)
  at doWrite (_stream_writable.js:226:10)
  at writeOrBuffer (_stream_writable.js:216:5)
  at EncryptedStream.Writable.write (_stream_writable.js:183:11)
  at write (_stream_readable.js:585:24)
  at flow (_stream_readable.js:594:7)
  at Socket.pipeOnReadable (_stream_readable.js:626:5)
  at Socket.emit (events.js:92:17)
  at emitReadable_ (_stream_readable.js:410:10)
  at emitReadable (_stream_readable.js:406:5)
  at readableAddChunk (_stream_readable.js:168:9)
  at Socket.Readable.push (_stream_readable.js:130:10)
  at TCP.onread (net.js:528:21)