Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot call method 'indexOf' of undefined #89

Open
Nowaker opened this issue Nov 10, 2014 · 18 comments
Open

TypeError: Cannot call method 'indexOf' of undefined #89

Nowaker opened this issue Nov 10, 2014 · 18 comments
Assignees
Labels

Comments

@Nowaker
Copy link
Member

Nowaker commented Nov 10, 2014

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
@flashmandv
Copy link

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

@Rush
Copy link
Member

Rush commented Dec 28, 2014

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 ?

@flashmandv
Copy link

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..

@Nowaker
Copy link
Member Author

Nowaker commented Dec 30, 2014

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

@Rush
Copy link
Member

Rush commented Dec 30, 2014

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

@Nowaker
Copy link
Member Author

Nowaker commented Jan 4, 2015

Exception frequency: ~5/day.

@maycel8607
Copy link

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

@Nowaker
Copy link
Member Author

Nowaker commented Dec 8, 2015

@maycel8607 What version of http-master and node?

@maycel8607
Copy link

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

@Nowaker
Copy link
Member Author

Nowaker commented Dec 9, 2015

@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.

@Nowaker
Copy link
Member Author

Nowaker commented Dec 9, 2015

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

@maycel8607
Copy link

Ok I will try. Thank you Nowaker :)

@Nowaker
Copy link
Member Author

Nowaker commented Dec 9, 2015

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

@maycel8607
Copy link

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

@Nowaker
Copy link
Member Author

Nowaker commented Dec 9, 2015

@maycel8607 lobby-app...?

@maycel8607
Copy link

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

@Nowaker
Copy link
Member Author

Nowaker commented Dec 9, 2015

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

@maycel8607
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants