Skip to content

Connection error #13

@muneebs

Description

@muneebs

Hi I've tried to setup my data source the way you have it in your example application, unfortunately, I've not been able to connect to my couchbase instance at all, and get the error below:

{
  "error": {
    "name": "TypeError",
    "status": 500,
    "message": "Cannot read property 'connect' of undefined",
    "stack": "TypeError: Cannot read property 'connect' of undefined\n    at DataSource.dataSource.connect (/Users/muneeb/dev/api/node_modules/loopback-datasource-juggler/lib/datasource.js:339:29)\n    at DataSource.ready (/Users/muneeb/dev/api/node_modules/loopback-datasource-juggler/lib/datasource.js:2001:10)\n    at stillConnecting (/Users/muneeb/dev/api/node_modules/loopback-datasource-juggler/lib/dao.js:306:23)\n    at Function.DataAccessObject.create (/Users/muneeb/dev/api/node_modules/loopback-datasource-juggler/lib/dao.js:151:27)\n    at Object.eval [as forward] (eval at recompile (/usr/local/lib/node_modules/strongloop/node_modules/strong-agent/lib/proxy.js:237:15), <anonymous>:4:32)\n    at Function.eval (eval at wrap (/usr/local/lib/node_modules/strongloop/node_modules/strong-agent/lib/proxy.js:193:20), <anonymous>:3:21)\n    at SharedMethod.invoke (/Users/muneeb/dev/api/node_modules/loopback/node_modules/strong-remoting/lib/shared-method.js:198:25)\n    at HttpContext.invoke (/Users/muneeb/dev/api/node_modules/loopback/node_modules/strong-remoting/lib/http-context.js:335:12)\n    at /Users/muneeb/dev/api/node_modules/loopback/node_modules/strong-remoting/lib/remote-objects.js:595:9\n    at execStack (/Users/muneeb/dev/api/node_modules/loopback/node_modules/strong-remoting/lib/remote-objects.js:448:7)"
  }
}

This is my configuration file:

"couchbase": {
    "host": "127.0.0.1",
    "port": 8091,
    "database": "default",
    "name": "couchbase",
    "n1qlport": 8093,
    "connector": "couchbase",
    "connectionTimeout": 20000,
    "operationTimeout": 15000
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions