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

Crash: Object #<Object> has no method '_normalizeConnectArgs' #67

Closed
bentrombley opened this issue Oct 19, 2013 · 6 comments
Closed

Crash: Object #<Object> has no method '_normalizeConnectArgs' #67

bentrombley opened this issue Oct 19, 2013 · 6 comments

Comments

@bentrombley
Copy link

This works on my development environment, but crashes 100% of the time in production. I think there may be an interaction with mongoose and/or mongodb.

node v0.8.7
newrelic v0.11.9

TypeError: Object # has no method '_normalizeConnectArgs'
at Socket.connect (HOME_DIR/node_modules/newrelic/node_modules/continuation-local-storage/node_modules/async-listener/index.js:53:20)
at Object.exports.connect.exports.createConnection (net.js:84:35)
at Connection.start (HOME_DIR/vulpes/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:150:29)
at _connect (HOME_DIR/vulpes/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:195:16)
at ConnectionPool.start (HOME_DIR/vulpes/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:215:3)
at Server.connect (HOME_DIR/vulpes/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:683:18)
at ReplSet.connect (HOME_DIR/vulpes/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/repl_set/repl_set.js:218:10)
at Db.open (HOME_DIR/vulpes/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:262:23)
at NativeConnection.doOpenSet (HOME_DIR/vulpes/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js:147:11)
at NativeConnection.Connection._open (HOME_DIR/vulpes/node_modules/mongoose/lib/connection.js:403:15)

@groundwater
Copy link
Contributor

Hi @bentrombley thanks for the report.

If you have the opportunity, can you try updating the agent to it's latest release (last was 0.12.1). There have been several bug fixes in the last few releases.

If that doesn't fix the issue, could you let us know about any possible difference between dev and production?

  1. are the node versions the same
  2. are the versions of mongodb/mongoose the same?
  3. are there any distribution / OS differences?

Thanks very much for your feedback!

@bentrombley
Copy link
Author

Thanks for the quick response! I realize that in production we were on node 0.8 (dev is .10), so I upgraded node to 0.10.21. and the newrelic module to 0.12.1 and so far everything is working again.

@groundwater
Copy link
Contributor

That's great to hear @bentrombley. If you should run into any other errors, please let us know right away.

@grandmore
Copy link

I have the same issue. I am running node 0.8.3 but cannot upgrade to a greater version of node.

�'TypeError: Object # has no method '_normalizeConnectArgs''�,

Oct 24 22:30:55 default: �error�:' at Socket.connect (/home/node_modules/newrelic/node_modules/continuation-local-storage/node_modules/async-listener/index.js:53:20)'�,

@othiym23 othiym23 reopened this Oct 24, 2013
@othiym23
Copy link
Contributor

Thanks for the report! We totally do support Node 0.8, so if you're willing to help me out, I'll totally work with you to get to the bottom of this! If you could tell me what version of node-mongodb-native you're using, and what version of the agent you're running, that would be super useful. Also, if you can provide me with a reduced error I can use for debugging (it's fine if it includes npm dependencies), that would be awesome.

@othiym23
Copy link
Contributor

This is fixed by othiym23/async-listener@d4a5ad1, which is included in newrelic v1.0.1. I specifically tested the change under 0.8.3, so give newrelic another shot and it should work this time! Thanks for the reports and let me know if you're still having problems with 1.0.1.

cmcadams-newrelic pushed a commit to cmcadams-newrelic/node-newrelic that referenced this issue Jan 29, 2024
jsumners-nr pushed a commit to jsumners-nr/node-newrelic that referenced this issue Apr 11, 2024
update files list to include versioned tests so they can run in main …
jsumners-nr pushed a commit to jsumners-nr/node-newrelic that referenced this issue Apr 16, 2024
bizob2828 added a commit to bizob2828/node-newrelic that referenced this issue Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants