sdk-core icon indicating copy to clipboard operation
sdk-core copied to clipboard

[Feature Request] Clarify GetSystemInfo failure message

Open lorensr opened this issue 3 years ago • 0 comments

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...

lorensr avatar Jun 14 '22 18:06 lorensr