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
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
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