core icon indicating copy to clipboard operation
core copied to clipboard

[CLI] Support multipart upload for `nuxthub deploy`

Open numberslk opened this issue 1 year ago • 3 comments

When try to deploy the project with npx nuxthub deploy get the error message

"https://admin.hub.nuxt.com/api/teams/numberslk/projects/numberslk/deploy": 413 Request Entity Too Large

image

numberslk avatar Jun 09 '24 14:06 numberslk

Sorry about this @numberslk

We may have to use multipart upload for this @farnabaz

In the meantime, I think you can switch to use Cloudflare Pages CI for your project @numberslk

atinux avatar Jun 10 '24 13:06 atinux

To clarify, is this happening because the project size is more than 100MB? Link to Cloudflare Community Post

We just able to successfully deploy the project by significantly reducing the project size to approximately 10MB by removing the local images.

numberslk avatar Jun 10 '24 14:06 numberslk

Thanks for looking at it, indeed it seems to be the issue

atinux avatar Jun 10 '24 21:06 atinux

I encountered the same issue :-(. Everything was fine yesterday because I just pushed some new changes, but today I restarted the same production as a new project… I suspect there might have been some caching involved yesterday…

Σ Total size: 11.4 MB (3.34 MB gzip)
✔ You can preview this build using npx nuxthub preview                                                                                                          nitro 19:59:24
✔ You can deploy this build using npx nuxthub deploy                                                                                                            nitro 19:59:24
✖ Failed to deploy eazeazeaz to production.

 ERROR  [POST] "https://admin.hub.nuxt.com/api/teams/azeaea/projects/eazaze/deploy": 413 Request Entity Too Large 

CleanShot 2024-12-30 at 20 24 41@2x

Cyriljshaz avatar Dec 30 '24 19:12 Cyriljshaz

Fixed in https://github.com/nuxt-hub/cli/pull/41

RihanArfan avatar Apr 15 '25 01:04 RihanArfan