Re: Connect fails from nodejs command line

2014-10-01 Thread Guy Knights
Ah...that makes sense. I moved the code inside the callback and it does indeed work. That was sort of in the back of my mind, but I think I got thrown by the fact that the web process worked fine, so I assumed this script should also be fine. Thanks for the help Warren! On Tuesday, September 3

Re: Connect fails from nodejs command line

2014-09-30 Thread Warren Lindsey
Hi Guy, Connect is an async call, so it returns immediately, even if you're not connected yet. Calls to the db care queued up until the connection is established. What is probably happening is the node script runs through the connect and get and then exits right out the end before waiting for

Connect fails from nodejs command line

2014-09-29 Thread Guy Knights
I'm writing an application in nodejs and am using the couchbase nodejs library, version 1.2.4. My web application works fine and connects to couchbase without any problems - I can get and set documents without any issues. However, I'm writing a maintenance script to be run from the command line