yocontra / smog

HTML5/Node/WebSocket MongoDB panel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jsalonen opened this issue · comments

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

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

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

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