Build is successful but deploy fails to upload

The build process happens successfully but deploys are constantly failing on the last step - uploading assets.

Log sample:
...
21:02:01.802    Uploading... (6555/13968)
21:02:08.818    Uploading... (6938/13968)
21:03:47.697    Uploading... (7293/13968)
21:03:50.771    /opt/pages/build_tool/js/node_modules/wrangler/wrangler-dist/cli.js:29573
21:03:50.771                throw a;
21:03:50.771                ^
21:03:50.771    
21:03:50.772    FatalError: Failed to upload files. Please try again. Error: {"text":"Received a malformed response from the API","notes":[{"text":"<!DOCTYPE html>\n<!--[if lt IE 7]> <html class=\"no-js ie6 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if I... (length = 7177)"},{"text":"POST /pages/assets/upload -> 524 "}],"kind":"error","name":"APIError"})
21:03:50.772        at /opt/pages/build_tool/js/node_modules/wrangler/wrangler-dist/cli.js:149152:13
21:03:50.772        at processTicksAndRejections (node:internal/process/task_queues:96:5)
21:03:50.772        at async run (/opt/pages/build_tool/js/node_modules/wrangler/wrangler-dist/cli.js:148676:26) {
21:03:50.772      code: 1
21:03:50.772    }
21:03:50.830    Failed: upload process exited with code: 7
21:03:51.992    Failed: error uploading static assets. Check the logs above for more information. If this continues for an unknown reason, contact support: https://cfl.re/3WgEyrH
21:03:51.992    Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: a6c6d283-9ce8-4425-bf49-740216c86e02


This is now happening very frequently and randomly. Any ideas?
Was this page helpful?