[Bug] gRPC Connection Refused when executing Workflows in tests
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- node.js, typescript
- Lĩnh vực
- testing
Hướng nghiên cứu
Bắt đầu với các bài kiểm thử ví dụ trong activities-examples/src/mocha và chạy npm install, sau đó là npm test. Điều tra lý do TestWorkflowEnvironment không thể thiết lập kết nối gRPC trong thiết lập được báo cáo. Hoàn tất khi các bài kiểm thử ví dụ chạy thành công mà không có lỗi Connection Refused.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What are you really trying to do?
I am trying to test executing my Temporal workflows with the @temporalio/testing package.
Describe the bug
Whenever I try to execute a workflow with the testing library (TestWorkflowEnvironment), I see a gRPC error saying that the connection was refused.
I believe this issue surfaced today, as my tests were working up until yesterday, and no changes were made on my end.
Minimal Reproduction
You can reproduce the issue with this repo's example tests in activities-examples/src/mocha.
Steps:
- Fresh clone of this repo
cd activities-examplesnpm installnpm test
Tests error with gRPC Connection Refused
$ git clone https://github.com/temporalio/samples-typescript
$ cd samples-typescript/activities-examples
$ npm install
$ npm test
> [email protected] test
> mocha --require ts-node/register --require source-map-support/register src/mocha/*.test.ts
example workflow
2024-04-29T21:38:36.476892Z WARN temporal_client::retry: gRPC call poll_activity_task_queue retried 6 times error=Status { code: Unavailable, message: "error trying to connect: tcp connect error: Connection refused (os error 61)", source: Some(tonic::transport::Error(Transport, hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })))) }
2024-04-29T21:38:36.759551Z WARN temporal_client::retry: gRPC call poll_activity_task_queue retried 6 times error=Status { code: Unavailable, message: "error trying to connect: tcp connect error: Connection refused (os error 61)", source: Some(tonic::transport::Error(Transport, hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })))) }
...
0 passing (59s)
4 failing
Environment/Versions
- OS and processor: M1 Mac
- Temporal Version:
$ node --version
v18.18.2
$ npm --version
9.8.1
$ npm list @temporalio/client
[email protected] /Users/markan/samples-typescript/activities-examples
├── @temporalio/[email protected]
├─┬ @temporalio/[email protected]
│ └── @temporalio/[email protected] deduped
└─┬ @temporalio/[email protected]
└── @temporalio/[email protected] deduped
- Are you using Docker or Kubernetes or building Temporal from source? N/A, I'm just trying to run the example test from this repo
Additional context
- Ngôn ngữ chính
- TypeScript
- Star
- 469
- Fork
- 150
- Merge trung bình
- 2 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của temporalio/samples-typescript
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
temporalio/samples-typescript#418 ·
-
[Feature Request] Health checkĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
temporalio/samples-typescript#433 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
temporalio/samples-typescript#425 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
temporalio/samples-typescript#419 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
temporalio/samples-typescript#411 ·
Tất cả issue của temporalio/samples-typescript
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
lichess-org/lila#22324 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature Request] [Web] Expose kvCacheQuantizationBits in the onnxruntime-web WebGPU EP optionsĐang mởep:WebGPU platform:web quantization
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
microsoft/onnxruntime#33752 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Skill Bug]: entra-agent-id: inaccurate blueprint permission inheritance and parent token sub claimĐang mởbug entra-agent-id
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/GitHub-Copilot-for-Azure#3467 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(worker): keep normal prepare waiting states failure-freeCó thể đã có người làm @LichKing-2234 đã nhận hôm nay. Đang mởagent:codex priority:P1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AgoraIO-Extensions/agent-infra#3745 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The five-line work window can drop its oldest line: the per-line byte share ignores the JSON framingCó thể đã có người làm @Eapp1e đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
makecindy/cindy#7973 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày