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

HTTPError

Error message

HTTPError

What it means

Wrapper for an HTTP-level failure during registry communication (bad status, connection error, etc.). The request-specific status/cause is carried alongside; this variant marks the failure category when fetching package metadata or tarballs.

Solutions

  1. Check registry connectivity and any configured registry URL/auth token
  2. Retry after transient failures (5xx, network drops); back off on 429
  3. If behind a proxy, verify HTTPS_PROXY/HTTP_PROXY settings
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/install/error.rs:67 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/f330def4f0a2cded. Report an issue: GitHub.

Appendix: source

Thrown at src/install/error.rs:67

    #[error("DanglingSymlink")]
    DanglingSymlink,
    #[error("UnsupportedYarnLockfileVersion")]
    UnsupportedYarnLockfileVersion,
    #[error("InvalidPackageJSON")]
    InvalidPackageJSON,
    #[error("LockfileResolveFailed")]
    LockfileResolveFailed,
    #[error("DistTagNotFound")]
    DistTagNotFound,
    #[error("NoMatchingVersion")]
    NoMatchingVersion,
    #[error("TooRecentVersion")]
    TooRecentVersion,
    #[error("MissingPackageJSON")]
    MissingPackageJSON,
    #[error("InstallFailed")]
    InstallFailed,
    #[error("HTTPError")]
    HTTPError,
    #[error("Failed")]
    Failed,
    #[error("UnrecognizedDependencyFormat")]
    UnrecognizedDependencyFormat,
    #[error("No global directory found")]
    NoGlobalDirectoryFound,
    #[error("InvalidPackageID")]
    InvalidPackageID,
    #[error("PartialInstallFailed")]
    PartialInstallFailed,
    #[error("NoPackagesInstalled")]
    NoPackagesInstalled,
    #[error("SecurityScannerInWorkspace")]
    SecurityScannerInWorkspace,
    #[error("SecurityScannerRetryFailed")]
    SecurityScannerRetryFailed,
    #[error("IPCPipeFailed")]

View on GitHub (pinned to 8c5296ac45)