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

UnexpectedNotModified

Error message

UnexpectedNotModified

What it means

A conditional request returned 304 Not Modified when no conditional request was sent. The client did not send If-None-Match but received 304 anyway, indicating a protocol violation by the registry or cache layer.

Solutions

  1. Clear the HTTP cache used by the installer
  2. Check for caching proxies incorrectly returning 304 for unconditional requests
  3. Retry — may be a transient cache inconsistency on the registry CDN
Defensive patterns

Strategy: retry

When it happens

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

Appendix: source

Thrown at src/install/error.rs:43

    #[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")]
    InvalidPackageJSON,
    #[error("LockfileResolveFailed")]
    LockfileResolveFailed,
    #[error("DistTagNotFound")]
    DistTagNotFound,
    #[error("NoMatchingVersion")]
    NoMatchingVersion,
    #[error("TooRecentVersion")]

View on GitHub (pinned to 8c5296ac45)