Temporal Server Client Connection works with API Key but Worker Native Connection fails with the same parameters

I’m using an API Key to connect a client to a Temporal Cloud Service from a local test client using the code:

const connection = await Connection.connect(
    address: tmprlEndpoint,
    tls: true,
    apiKey: tmprlAPIKey,
    metadata: {
        'temporal-namespace': tmprlNamespaceAndAccountId,
    },
)
const client = new Client({
    connection,
    namespace: tmprlNamespaceAndAccountId,
});

That works fine.

Then I try to create a NativeConnection within a Worker (in a different process also running on localhost) with the code:

const connection = await NativeConnection.connect(
    address: tmprlEndpoint,
    tls: true,
    apiKey: tmprlAPIKey,
    metadata: {
      'temporal-namespace': tmprlNamespaceAndAccountId,
    },
)
const worker = await Worker.create({
    connection,
    namespace: tmprlNamespaceAndAccountId,
    //
});

And that fails with an error: TransportError: tonic::transport::Error(Transport, Os { code: 3, kind: NotFound, message: “The system cannot find the path specified.”

I’m using SDK V1.11, and this should work. It’s the same code as provided here: API keys - Temporal Cloud feature guide | Temporal Platform Documentation

Any pointers would be helpful