Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry nodejs.org and other fetches #77

Open
jakebailey opened this issue Jun 20, 2024 · 0 comments
Open

Retry nodejs.org and other fetches #77

jakebailey opened this issue Jun 20, 2024 · 0 comments

Comments

@jakebailey
Copy link
Member

[18:38:45.539] [0] $ node /home/azdo/agent/_work/2/typescript-benchmarking/ts-perf/bin/ts-perf host install --host 'node@18.15.0'
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/power-options@0.3.4/node_modules/power-options/dist/lib/resolver.js:978:17)
    at Command.execute (/home/azdo/agent/_work/2/typescript-benchmarking/node_modules/.pnpm/power-options@0.3.4/node_modules/power-options/dist/lib/resolver.js:869:13)
    at CommandLine.execute (/home/azdo/agent/_work/2/typescript-benchmarking/node_modules/.pnpm/power-options@0.3.4/node_modules/power-options/dist/lib/commandLine.js:63:17)
    at CommandLine.parseAndExecute (/home/azdo/agent/_work/2/typescript-benchmarking/node_modules/.pnpm/power-options@0.3.4/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 'node@18.15.0'
[18:38:46.242] [0] ✘ (done in 703ms)
file:///home/azdo/agent/_work/2/typescript-benchmarking/node_modules/.pnpm/execa@9.2.0/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant