Skip to content

Error using this library with Botkit.  #10

@donovat

Description

@donovat

I have included the botkit-storage-couchdb repo in my code, but once the code starts I get the following errors;
/home/vcap/app/node_modules/botkit-storage-couchdb/lib/storage.js:85
db.insert(design.doc, _design/${design.namespace});
[APP/PROC/WEB/0]ERR ^
TypeError: db.insert is not a function
at designDocs.forEach.design (/home/vcap/app/node_modules/botkit-storage-couchdb/lib/storage.js:85:12)
at Array.forEach (native)
at module.exports.config (/home/vcap/app/node_modules/botkit-storage-couchdb/lib/storage.js:84:16)
at Object. (/home/vcap/app/bot-facebook.js:25:55)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at module.exports (/home/vcap/app/app.js:32:18)
at Object. (/home/vcap/app/server.js:38:17)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
Exit status 1

I am running the code on IBM's Cloud, and looking to test if I can use this repo code to connect to IBM's version of a couchdb - Cloudant.
Also, how do you define usernames and passwords for connection to the db instance?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions