sdk-core
sdk-core copied to clipboard
[Feature Request] Clarify GetSystemInfo failure message
Is your feature request related to a problem? Please describe.
When Server is down and I run a TS worker, I get this error:
TransportError: Failed to call GetSystemInfo: status: Cancelled, message: "Timeout expired", details: [], metadata: MetadataMap { headers: {} }
at Function.connect (/Users/me/gh/sdk-typescript/packages/worker/lib/connection.js:56:23)
at async Function.create (/Users/me/gh/sdk-typescript/packages/worker/lib/worker.js:141:51)
at async main (/Users/me/gh/sdk-typescript/packages/test/lib/run-a-worker.js:45:20)
Describe the solution you'd like
Perhaps if localhost:
TransportError: Unable to connect to Temporal Server. Make sure you are running Temporalite or Docker Compose: https://docs.temporal.io/application-development-guide/#docker-compose
Failed to call GetSystemInfo...
Otherwise:
TransportError: Unable to connect to Temporal Server. Check to make sure that Temporal Server is running and you're providing the correct connection options.
Failed to call GetSystemInfo...