Closed fiatjaf closed 10 years ago
Yes this seems like a bug - I just got the same results :( I've fix this tonight hopefully
— Sent from Mailbox
On Fri, Nov 7, 2014 at 5:25 AM, Giovanni notifications@github.com wrote:
I tried to run the example at the readme:
var levelup = require('levelup'); var db = levelup('localhost/my-database', { db: require('mongodown') }); db.put('name', 'Yuri Irsenovich Kim') db.put('dob', '16 February 1941') db.put('spouse', 'Kim Young-sook') db.put('occupation', 'Clown') db.readStream() .on('data', console.log) .on('close', function () { console.log('Show\'s over folks!') })
But I only got "Show's over folks!". Trying to manually
.get
any of the keys also didn't work. Using MongoLab as my backend. Following the instructions at the mongojs readme, I placed my user and password along with the string in the way they describe there. I also precreated a collection named "mongodown" as I saw it was the default namemongodown
was using. I placed someconsole.log
s at the.connect
and.put
code to see if they were being called correctly, and yes they were. Everything seemed fine, but I couldn't dig more. During the whole process, I tried to inspect the error parameters in the callbacks, but they wereundefined
or{}
.My MongoLab dashboard also shows no document has been written.
Reply to this email directly or view it on GitHub: https://github.com/watson/mongodown/issues/1
@fiatjaf this should now be fixed in v1.0.1 - The Travis-CI build status currently says it's failing, but it seems to be an issue with how Travis-CI runs the tests - I don't get any errors locally. I'm working on making Travis behave though ;)
Right, it is working now. Thank you very much.
I tried to run the example at the readme:
But I only got "Show's over folks!". Trying to manually
.get
any of the keys also didn't work.Using MongoLab as my backend. Following the instructions at the mongojs readme, I placed my user and password along with the string in the way they describe there. I also precreated a collection named "mongodown" as I saw it was the default name
mongodown
was using.I placed some
console.log
s at the.connect
and.put
code to see if they were being called correctly, and yes they were. Everything seemed fine, but I couldn't dig more.During the whole process, I tried to inspect the error parameters in the callbacks, but they were
undefined
or{}
.My MongoLab dashboard also shows no document has been written.