oven-sh/bun · error · bun_install::Error

TarballFailedToDownload

Error message

TarballFailedToDownload

What it means

Sentinel variant of the install Error enum: fetching a package tarball failed for a non-HTTP reason (network error, connection dropped, I/O failure writing the download). Complements the TarballHTTP* variants, which classify failures by response status.

Solutions

  1. Check network stability and retry the install
  2. Verify proxy and TLS configuration
  3. Clear partial downloads from the cache before retrying
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/install/error.rs:35 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16). Data as JSON: /api/errors/95be243c44068115. Report an issue: GitHub.

Appendix: source

Thrown at src/install/error.rs:35

    #[error("DeviceBusy")]
    DeviceBusy,
    #[error("TarballHTTP400")]
    TarballHTTP400,
    #[error("TarballHTTP401")]
    TarballHTTP401,
    #[error("TarballHTTP402")]
    TarballHTTP402,
    #[error("TarballHTTP403")]
    TarballHTTP403,
    #[error("TarballHTTP404")]
    TarballHTTP404,
    #[error("TarballHTTP4xx")]
    TarballHTTP4xx,
    #[error("TarballHTTP5xx")]
    TarballHTTP5xx,
    #[error("TarballFailedToExtract")]
    TarballFailedToExtract,
    #[error("TarballFailedToDownload")]
    TarballFailedToDownload,
    #[error("BadRequest")]
    BadRequest,
    #[error("TooManyRequests")]
    TooManyRequests,
    #[error("HTTPInternalServerError")]
    HTTPInternalServerError,
    #[error("UnexpectedNotModified")]
    UnexpectedNotModified,
    #[error("PackageFailedToParse")]
    PackageFailedToParse,
    #[error("BufferTooSmall")]
    BufferTooSmall,
    #[error("DanglingSymlink")]
    DanglingSymlink,
    #[error("UnsupportedYarnLockfileVersion")]
    UnsupportedYarnLockfileVersion,
    #[error("InvalidPackageJSON")]

View on GitHub (pinned to 8c5296ac45)