Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Retry nodejs.org and other fetches

Đang mở
#77 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
cli, networking

Hướng nghiên cứu

Bắt đầu trong packages/commands/src/host/nodeInstaller.ts, đặc biệt là getReleases và các fetches được hiển thị trong stack trace. Truy vết lệnh host-install liên quan và xác định các fetches khác được request này bao phủ. Hoàn tất khi các 500-level failures được thử lại ít nhất một lần sau một khoảng trễ thay vì thất bại ngay lập tức.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

[18:38:45.539] [0] $ node /home/azdo/agent/_work/2/typescript-benchmarking/ts-perf/bin/ts-perf host install --host '[email protected]'
Error: Could not download 'https://nodejs.org/download/release/index.json'; 502 Bad Gateway
    at getReleases (/home/azdo/agent/_work/2/typescript-benchmarking/ts-perf/packages/commands/src/host/nodeInstaller.ts:53:29)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at installMatchingNodeHosts (/home/azdo/agent/_work/2/typescript-benchmarking/ts-perf/packages/commands/src/host/nodeInstaller.ts:290:22)
    at installHost (/home/azdo/agent/_work/2/typescript-benchmarking/ts-perf/packages/commands/src/host/install.ts:15:26)
    at Command._invokeExec (/home/azdo/agent/_work/2/typescript-benchmarking/node_modules/.pnpm/[email protected]/node_modules/power-options/dist/lib/resolver.js:978:17)
    at Command.execute (/home/azdo/agent/_work/2/typescript-benchmarking/node_modules/.pnpm/[email protected]/node_modules/power-options/dist/lib/resolver.js:869:13)
    at CommandLine.execute (/home/azdo/agent/_work/2/typescript-benchmarking/node_modules/.pnpm/[email protected]/node_modules/power-options/dist/lib/commandLine.js:63:17)
    at CommandLine.parseAndExecute (/home/azdo/agent/_work/2/typescript-benchmarking/node_modules/.pnpm/[email protected]/node_modules/power-options/dist/lib/commandLine.js:76:9)
    at main (/home/azdo/agent/_work/2/typescript-benchmarking/ts-perf/packages/cli/src/index.ts:69:24)
[18:38:46.242] [0] ✘ Command failed with exit code 1: node /home/azdo/agent/_work/2/typescript-benchmarking/ts-perf/bin/ts-perf host install --host '[email protected]'
[18:38:46.242] [0] ✘ (done in 703ms)
file:///home/azdo/agent/_work/2/typescript-benchmarking/node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/final-error.js:6
	return new ErrorClass(message, options);
	       ^

We should retry 500 errors at least once after a delay.

Ngôn ngữ chính
TypeScript
Star
26
Fork
6
Merge trung bình
5 phút
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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/typescript-benchmarking

Tất cả issue của microsoft/typescript-benchmarking

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.