vercel/next.js · error

Creating filter with error rate less than 0.1% (0.001) can i

Error message

Creating filter with error rate less than 0.1% (0.001) can increase the size dramatically proceed with caution. Received error rate ${this.errorRate} resulted in size ${filterData.length} bytes, ${gzipSize} bytes (gzip)

What it means

Error "Creating filter with error rate less than 0.1% (0.001) can increase the size dramatically proceed with caution. Received error rate ${this.errorRate} resulted in size ${filterData.length} bytes, ${gzipSize} bytes (gzip)" thrown in vercel/next.js.

Source

Thrown at packages/next/src/shared/lib/bloom-filter.ts:59

  export() {
    const data = {
      numItems: this.numItems,
      errorRate: this.errorRate,
      numBits: this.numBits,
      numHashes: this.numHashes,
      bitArray: this.bitArray,
    }

    if (process.env.NEXT_RUNTIME === 'nodejs') {
      if (this.errorRate < DEFAULT_ERROR_RATE) {
        const filterData = JSON.stringify(data)
        const gzipSize = (
          require('next/dist/compiled/gzip-size') as typeof import('next/dist/compiled/gzip-size')
        ).sync(filterData)

        if (gzipSize > 1024) {
          console.warn(
            `Creating filter with error rate less than 0.1% (0.001) can increase the size dramatically proceed with caution. Received error rate ${this.errorRate} resulted in size ${filterData.length} bytes, ${gzipSize} bytes (gzip)`
          )
        }
      }
    }

    return data
  }

  import(data: ReturnType<(typeof this)['export']>) {
    this.numItems = data.numItems
    this.errorRate = data.errorRate
    this.numBits = data.numBits
    this.numHashes = data.numHashes
    this.bitArray = data.bitArray
  }

  add(item: string) {

View on GitHub (pinned to 0eb3775416)

Solutions

  1. Increase the bloom filter error rate (e.g. to 0.001 or higher) to keep the filter size reasonable.
  2. Reduce the number of items stored in the filter.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/next/src/shared/lib/bloom-filter.ts:59 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of vercel/next.js@0eb3775416 (2026-08-19). Data as JSON: /api/errors/8335af3a8bbda3c7. Report an issue: GitHub.