virtkick/http-master

TypeError: Cannot call method 'indexOf' of undefined

Opened this issue · 18 comments

Number of exception: ~5
Seen on: 0.7.14

[2014-11-10T15:31:41.897Z] [7] [Uncaught exception] TypeError: Cannot call method 'indexOf' of undefined
    at Object.onanswer [as oncomplete] (dns.js:121:51)
[2014-11-10T15:31:41.934Z] Worker 7 failed with code 1/null ... starting replacement

Same problem here. Is there any fix or info why it happens ?

Rush commented

Not yet but it seemed to happen less often recently. It seems like a problem with node (dns.js is a node file). Does it happen often for you? What version of http-master and node are you running @flashmandv ?

Turned out to be caused by memory leak in winston logger package.
My server was socket.io 1.2.1 + nodejs 0.10.34 + memcached + winston 0.8.0 (which was leaking..)
Strange thing was that the exception occur when I installed the memcached..that's how I found out there is a leak..

@flashmandv I use http-master alone, so there's no winston in my deployment, yet I get this error.

Rush commented

@flashmandv - so you're using http-master as a module?

Exception frequency: ~5/day.

Hi I also have the same problem. Is it already fix?

@maycel8607 What version of http-master and node?

I'm using lobby-master latest version and v0.10.36 of node

@maycel8607 Can you please give Node 4 a try? We've been using it intensively with http-master and we haven't gotten any indexOf exception originating from dns.js since then.

Oh, sorry, it's 0.12.7 that we're using on the most utilized server.

Ok I will try. Thank you Nowaker :)

...but we're using Node 4 in a different project with a success, so both are well-tested. :)

What version of node you are using in your lobby-app master?

@maycel8607 lobby-app...?

Lobby-app master is an app that the will allow the visitor to sign in and then will send NDA form to be sign. https://github.com/docusign/Lobby-App

Sounds interesting. But not sure why you're asking me about Node version in lobby-app as we're not affiliated with them.

ah ok. I thought you are using that app also. Sorry.