Hello,
I am trying to connect to Couchbase using a bad password and i have an Unhandled promise rejections
error.
Is it an error from my code:
const couchbase = require('couchbase');
const cluster = new couchbase.Cluster('10.12.125.0,' {
username: 'Administrator',
password: 'badPassword',
});
const bucket = cluster.bucket('products');
const coll = bucket.defaultCollection();
const run = async() => {
try {
let res = await coll.remove("data::12454");
console.log(JSON.stringify(res));
} catch (error) {
console.log(error);
}
};
run().catch(e => console.log(e));
Thank you in advance.
Samir YAHIAOUI