Hi,
I am going through Temporal 101 typescript course. I have created worker, workflow definition etc… on my local and I am trying to connect to temporal server which is started on gitpod, temporalio-edu101typesc-o7y0hz5fgon.ws-us92.gitpod.io. The code to create worker is as below.
const nativeConnection = await NativeConnection.connect({
address: ‘temporalio-edu101typesc-o7y0hz5fgon.ws-us92.gitpod.io’
});
const worker = await Worker.create({
workflowsPath: require.resolve(‘./workflows’),
activities,
taskQueue: ‘hello-world’,
connection:nativeConnection
});
When I try to start worker
I get error as below
TransportError: tonic::transport::Error(Transport, hyper::Error(Connect, ConnectError(“tcp connect error”, Os { code: 10060, kind: TimedOut, message: “A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.” })))
at Function.connect (C:\Source\temporal-hello-world\node_modules@temporalio\worker\src\connection.ts:51:15)
at async run (C:\Source\temporal-hello-world\src\worker.ts:8:28)