8000 App Hosting deploy error for a large site · Issue #8740 · firebase/firebase-tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
App Hosting deploy error for a large site #8740
Open
@jhuleatt

Description

@jhuleatt

[REQUIRED] Environment info

firebase-tools: 14.6.0

Platform: macOS

[REQUIRED] Test case

I tried to deploy the Flutter docs to App Hosting, since they're open source: https://github.com/flutter/website. It's a lot of content.

[REQUIRED] Steps to reproduce

  1. Clone the Flutter docs (https://github.com/flutter/website)
  2. pnpm install
  3. Add an apphosting:build script to package.json that's the same as the build-site-for-production script
  4. Add a start script to package.json: "start": "npx serve _static"
  5. firebase init apphosting
  6. firebase deploy --only apphosting

[REQUIRED] Expected behavior

An App Hosting rollout starts

[REQUIRED] Actual behavior

The deploy command fails with this error:

Error: Unable to parse JSON: SyntaxError: Unexpected token '<', "<?xml vers"... is not valid JSON

Looking at firebase-debug.log, this error happens because the Storage upload returns this error, which the CLI doesn't know how to parse:

[2025-06-11T14:19:35.864Z] <<< [apiv2][status] PUT https://storage.googleapis.com/firebaseapphosting-sources-85476909309-us-central1/flutter-docs--34656-UsniywOpDMMZ-.zip 400
[2025-06-11T14:19:35.866Z] <<< [apiv2][body] PUT https://storage.googleapis.com/firebaseapphosting-sources-85476909309-us-central1/flutter-docs--34656-UsniywOpDMMZ-.zip "<?xml version='1.0' encoding='UTF-8'?><Error><Code>EntityTooLarge</Code><Message>Your proposed upload is larger than the maximum object size specified in your Policy Document.</Message><Details>Content-length exceeds upper bound on range</Details></Error>"

So the underlying error is from Cloud Storage:

Your proposed upload is larger than the maximum object size specified in your Policy Document

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0