We are running a TypeScript SDK@1.52 and Temporal Cloud 2.91
Our WorkflowClient is created this way:
const connectionConfig: ConnectionOptions = {
address: process.env.TEMPORAL_URL,
connectTimeout: '30s',
tls: {
clientCertPair: {
crt: fs.readFileSync(`${__dirname}/certs/tempo.pem`),
key: fs.readFileSync(`${__dirname}/certs/tempo.key`),
},
},
};
return new WorkflowClient({
connection: await Connection.connect(connectionConfig),
namespace: WorkflowConfig.namespace(process.env),
});
Temporal Cloud Namespace is provisioned with CA certificates as required.
However, connection fails with the following error:
Failed to call GetSystemInfo: status: Unknown, message: "", details: [], metadata: MetadataMap
{
"headers": {
"location": "https://***-ns.tmprl.cloud/temporal.api.workflowservice.v1.WorkflowService/GetSystemInfo",
"content-type": "application/grpc",
"server": "temporal",
"date": "Sat, 28 Jan 2023 10:04:57 GMT"
}
},
{
"exception": {
"name":"TransportError"
}
}