You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
The error that is being raised is super misleading when the address is already binded to another process. Ideally we should get something like
: Address already in use - bind(2) for "127.0.0.1" port 3001 (Errno::EADDRINUSE)
... backtrace ...
Actual Behavior
Panic error with no context in it.
❯ ./spec/support/go_server/main 3000 s [3.1.2]
2022/12/07 22:55:29 Let's do this!
2022/12/07 22:55:29 Starting server on port 3000 for namespace s
panic: Client must be created with client.Dial() or client.NewLazyClient()
goroutine 203 [running]:
go.temporal.io/sdk/internal.NewWorker(...)
/Users/laertipapa/go/pkg/mod/go.temporal.io/sdk@v1.15.0/internal/worker.go:233
go.temporal.io/sdk/worker.New({0x0?, 0x0?}, {0x300c11c?, 0x23?}, {0xa, 0x0, 0x0, 0x0, 0x0, 0x8, ...})
/Users/laertipapa/go/pkg/mod/go.temporal.io/sdk@v1.15.0/worker/worker.go:223 +0xdd
go.temporal.io/server/service/worker/scanner.(*Scanner).Start(0xc00030d8f0)
/Users/laertipapa/go/pkg/mod/go.temporal.io/server@v1.17.5/service/worker/scanner/scanner.go:153 +0x7a6
go.temporal.io/server/service/worker.(*Service).startScanner(0xc0002d8180)
/Users/laertipapa/go/pkg/mod/go.temporal.io/server@v1.17.5/service/worker/service.go:472 +0x22a
go.temporal.io/server/service/worker.(*Service).Start(0x0?)
/Users/laertipapa/go/pkg/mod/go.temporal.io/server@v1.17.5/service/worker/service.go:374 +0x3dc
go.temporal.io/server/service/worker.ServiceLifetimeHooks.func1.1({0x34d8248?, 0xc0002d8180?}, 0xc000368880?)
/Users/laertipapa/go/pkg/mod/go.temporal.io/server@v1.17.5/service/worker/fx.go:155 +0x2c
created by go.temporal.io/server/service/worker.ServiceLifetimeHooks.func1
/Users/laertipapa/go/pkg/mod/go.temporal.io/server@v1.17.5/service/worker/fx.go:153 +0x98
Start which ever process you like locally in port X
Try to run the go server in port X: ./main 3001 s
The text was updated successfully, but these errors were encountered:
laertispappas
changed the title
Misleading error is raised when host address is already used locally.
Misleading error is raised when host address is already binded locally.
Dec 7, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behavior
The error that is being raised is super misleading when the address is already binded to another process. Ideally we should get something like
Actual Behavior
Panic error with no context in it.
Steps to Reproduce the Problem
./main 3001 s
The text was updated successfully, but these errors were encountered: