temporalio / temporalio/sdk-rust
[Feature Request] Clarify GetSystemInfo failure message
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Rust
- Stars
- 523
- Forks
- 161
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 67
Description
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...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the connection path shown in packages/worker/lib/connection.js and packages/worker/lib/worker.js, focusing on the GetSystemInfo failure. Update the error wording to distinguish localhost from other connection failures and retain the underlying failure details; done means the reported scenarios produce the proposed messages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, typescript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100