Closed hmdevelopermind closed 4 years ago
If you just want to check connectivity. A simpler test script should help you identify what's going on. This is the equivalent of the curl
statement:
const Nano = require('nano')
const nano = Nano('http://4b03SQKEIPqrC3U07eRV:PkPcSbstE4KHX3oLZID5@default-couch.app.xxx.com')
const db = nano.db.use('de-search-records')
db.info().then(console.log)
^ this works with Nano for local CouchDB on http or remote Cloudant over https.
I don't see that the code you supplied actually makes any API calls. db.use
doesn't nor does the 'constructor'.
@glynnbird Thanks a lot for your comment. Actually I noticed there was a empty space in my path url and that was causing the issue
Hello everyone,
connecting to couch using curl returns:
However the same set up(password,username and url ) returns:
Unable to connect to Couchdb.
and here is my code:
and my env file:
Any idea?