I have an error-handler passed to a service bus client "receive" function and it is firing after setup as follows:
const ns = Namespace.createFromConnectionString(connectionString);
const client = ns.createQueueClient(queueName);
const receiver = client.getReceiver();
receiver.receive(onMessageHandler, onErrorHandler, { autoComplete: false });
with the error: UnauthorizedError: Unauthorized access. 'Listen' claim(s) are required to perform this operation.
The connection string being used uses the default root shared access key which has all claims (listen, send AND manage). Why am I getting this error / how to fix it? Thx.