Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Start server in scratchpad #346

Open
lorensr opened this issue Feb 26, 2024 · 0 comments
Open

[Feature Request] Start server in scratchpad #346

lorensr opened this issue Feb 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lorensr
Copy link
Contributor

lorensr commented Feb 26, 2024

Is your feature request related to a problem? Please describe.

If I try to run ts-node scratchpad/scratchpad.ts, after a while I get this error:

ts-node scratchpad.ts
TransportError: tonic::transport::Error(Transport, hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })))
    at Function.connect (/Users/me/node_modules/@temporalio/worker/src/connection.ts:51:15)
    at async Function.create (/Users/me/node_modules/@temporalio/worker/src/worker.ts:457:47)
    at async main (/Users/me/gh/samples-typescript/scratchpad/scratchpad.ts:33:18)

Describe the solution you'd like

scratchpad.ts runs temporal server start-dev if it's not already running

cc @dandavison

@lorensr lorensr added the enhancement New feature or request label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant