ScriptC toolchain installation fails due to timeout

Open
#769 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
node.js, zig
Domain
devtools, tooling

Research direction

Start by locating the toolchain installer that handles scriptc downloads and read how it applies the 120,000 ms timeout. Check how that installer is invoked by npm run toolchain:install and whether configuration or download diagnostics are already covered. Done means the installer can handle slow downloads reliably, exposes a configurable timeout, and reports useful failures.

Written by the indexing model from the issue text.

Description

Environment
  • OS: macOS (Apple Silicon, darwin-arm64)
  • Native SDK CLI: 0.11.1
  • ScriptC: 0.3.2
  • Node.js: v26.13.0
  • Package manager: npm
Description

When running native dev for the first time, the CLI reports that ScriptC is not installed:

Error: scriptc 0.3.2 is not installed

Running the toolchain installation command:

npm run toolchain:install

produces the following error:

Installing scriptc 0.3.2 for darwin-arm64
scriptc installation failed: The operation was aborted due to timeout
Investigation

The ScriptC release asset is accessible and can be downloaded successfully.

Asset:

scriptc-0.3.2-darwin-arm64.tar.gz

Observed download response:

  • HTTP Status: 200
  • Content-Length: 61,103,733 bytes (~58.2 MiB)

The installer appears to abort the download because of its timeout configuration.

The installer uses a 120,000 ms timeout, which can be insufficient under certain network conditions.

Workaround

Increasing the download timeout from 120,000 ms to 900,000 ms allowed the ScriptC installation to complete successfully.

Expected Behavior
  • The installer should reliably download and install ScriptC.
  • Download timeouts should be configurable.
  • Large toolchain assets should have a sufficiently generous timeout.
  • Failed downloads should provide more useful diagnostic information.
Suggested Fix

Consider:

  1. Increasing the default download timeout.
  2. Supporting a configurable timeout through environment variables or CLI options.
  3. Improving download retry and resume mechanisms.
  4. Providing clearer error messages distinguishing network failures from timeout failures.
Impact

Users with slower or unstable network connections may be unable to install the ScriptC toolchain and therefore cannot run native dev.

Dominant language
Zig
Stars
7.9k
Forks
335
Avg merge
10h 33m
Merged PRs (30d)
147

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vercel-labs/native

All issues in vercel-labs/native

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.