Couchbase-3.2.4 - query - lcb_unsupported_operation

I am using Couchbase Nodejs SDK 3.2.4 running on node 16.14.2 with npm 8.5.0. I am able to connect to my AWS couchbase server. But when i am running a query execution, the sdk is failing and showing error message LCB_UNSUPPORTED_OPERATION. Please check the below attached screenshots.

Here is my couchbase initialization code

this is my query execution code

this is the error i am getting on trying to execute a query

Found the fix for this issue. I am initializing the cluster connection by passing bucket-level access credentials. So, On initializing the cluster if I set the bucket to the cluster then it is working fine. Sharing a screenshot for reference.