Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Retry nodejs.org and other fetches

未關閉
#77 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
node.js, typescript
領域
cli, networking

研究方向

從 packages/commands/src/host/nodeInstaller.ts 開始,尤其查看 getReleases 以及堆疊追蹤中顯示的 fetches。追蹤相關的 host-install 命令,並找出該請求涵蓋的其他 fetches。完成標準是:500-level failures 會在延遲後至少重試一次,而不是立即失敗。

由索引模型根據 Issue 內容生成。

描述

[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.

主要語言
TypeScript
星號
26
分支
6
平均合併
5 分鐘
30 天內合併 PR
3

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microsoft/typescript-benchmarking 的其他 Issue

查看 microsoft/typescript-benchmarking 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。