yocontra / smog

HTML5/Node/WebSocket MongoDB panel
MIT License
443 stars 42 forks source link

TypeError: Object #<Admin> has no method 'wrap' #11

Closed jsalonen closed 12 years ago

jsalonen commented 12 years ago

Thanks for the latest updates to smog.

I tried to use the new version (0.0.9-3) to connect to MongoDB database with authentication enabled. When I input the URI and press connect, smog crashes with the following error:

C:\Users\User\AppData\Roaming\npm\node_modules\smog\node_modules\mongodb\lib\mongodb\connection\server.js:437
        throw err;
              ^
TypeError: Object #<Admin> has no method 'wrap'
...

The URI was given in format mongodb://username:password@server:port/database

yocontra commented 12 years ago

This is an issue with the mongo layer I'm using https://github.com/kissjs/node-mongoskin/issues/76 if they don't respond within the next few days I'll switch to something else

yocontra commented 12 years ago

Actually an issue with the core node lib - relevant https://github.com/mongodb/node-mongodb-native/issues/722

When they pull this in it should fix the problem

yocontra commented 12 years ago

They pulled it in, it will be in the next release