Skip to content

Multiple Nuxt Chunk Files Returning 503 Errors (Service Unavailable) #33491

@muhsin-life

Description

@muhsin-life

Environment

  • Operating System: Windows_NT
  • Node Version: v20.19.5
  • Nuxt Version: 3.17.4
  • CLI Version: 3.29.0
  • Nitro Version: 2.12.6
  • Package Manager: bun@1.1.29
  • Builder: -
  • User Config: devtools, experimental, modules, pinia, fonts, app, shadcn, i18n, runtimeConfig, robots, sitemap, routeRules, compatibilityDate
  • Runtime Modules: @pinia/nuxt@0.5.5, @pinia-plugin-persistedstate/nuxt@1.2.1, @nuxtjs/tailwindcss@6.14.0, shadcn-nuxt@0.10.4, @nuxtjs/i18n@9.5.5, @nuxt/image@1.10.0, @vueuse/nuxt@10.11.1, @nuxt/eslint@1.4.1, @vue-final-modal/nuxt@1.0.3, maz-ui/nuxt@3.44.3, @nuxtjs/robots@5.5.5, @nuxtjs/device@3.2.4, @nuxtjs/sitemap@7.4.7, @nuxt/fonts@0.11.3, nuxt-schema-org@5.0.9, nuxt-seo-utils@7.0.17
  • Build Modules: -

Reproduction

The issue seems to occur sporadically and is not consistently reproducible.

Describe the bug

Occasionally receiving a 503 Service Unavailable (from disk cache) error when loading Nuxt scripts in production.

Observed Behavior:

  • Some Nuxt JS chunks (e.g., /_nuxt/xxx.js) fail to load with a 503 response.
  • The response header indicates it may be served from Cloudflare’s disk cache.
  • Refreshing or clearing cache usually resolves it.

Expected Behavior:

  • Scripts should load reliably without 503 errors.

Additional context

Additional Notes:

  • Seems related to Cloudflare edge cache inconsistencies.

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions