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 类型
功能
描述清晰度
基本清楚
活跃度
停滞
领域
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
平均合并
18 分钟
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 摘要。