Hi Guys!
I have an error CouchbaseError: DNS/Hostname look up failed
when I’m trying to access to a server on vm on gcp from my local using nodejs sdk.
Where to check so far:
- I can open a console UI at :8091
- I can open a bucket using sdk. I 've checked that out.
Here’s a part of my code.
import couchbase from 'couchbase'
const cluster = new couchbase.Cluster(`couchbase://<server-ip>/`);
cluster.authenticate('username', 'password')
...
...
... // get bucket
bucket.get('my-document', (err, result) => {
...//blah blah
}
but it failed with dns/hostname lookup failed
I already searched for other topics but nothing works to me.
Anyone helps me out?