The connect function in v4.2.1 throws for custom port

The following code in node REPL throws:

> cb = require('couchbase')
> cluster = await cb.connect('',{username:"Administrator",password:'password'})
Uncaught [Error: request_canceled] { code: 2 }

It works if I remove :8091 part, but I need custom port in my environment. I’ve also checked SDK v2, same connection string with legacy API usage, it does not have such issue.

Hi @bsdelf. Could you try putting the KV port (default is 11210) rather than the cluster manager port

@jrawsthorne isn’t that auto inferred ? should you not just leave it i.e just provide the host address ?