Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-258

Node.js examples have incorrect connection string code.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • None
    • docs
    • Security Level: Public
    • Ubuntu 14.04

    Description

      So all the docs @ http://docs.couchbase.com/developer/node-2.0/hello-couchbase.html have the code

      var couchbase = require("couchbase");

      // Connect to Couchbase Server
      var cluster = new couchbase.Cluster('127.0.0.1:8091');
      var bucket = cluster.openBucket("<bucketname>");

      However when I use that code, I get a `error.code = 23` in my `openBucket` callback. I believe this is incorrect code, because leaving out the port, fixes the issue for me.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            amarantha.kulkarni Amarantha Kulkarni (Inactive)
            architbaweja Archit Baweja
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty