-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting ERR_FR_MAX_BODY_LENGTH_EXCEEDED with 12MB Feature #270
Comments
Ah yes, I think I know the issue. Our current implementation of the OCI distribution spec in the CLI currently doesn't page uploads. The OCI spec linked above that method is not doing any chunking. I think we'd need to support pushing-a-blob-in-a-chunk to properly chunk upload. cc/ @edgonmsft I think we knew this was a limitation but nobody had hit it yet. We should likely follow up with this, 12 MB seems reasonable to include in the uploaded Feature. |
Just wanted to add that I'm also running into this issue trying to create a feature to install a custom GCC compiler for an embedded system. |
Nothing close to being ready, but I forked the cli and started working on a patch myself. @joshspicer |
Hello. What is the current status on this issue? I'm running into the same limitation |
@joshspicer @DarthCoder117 This doesn't appear to be fundamentally a chunking problem. From my investigation, the max request body size is a restriction that's solely imposed by the http client. The problem seems to be that I was able to set this limit higher (e.g. 100MB) in I'm happy to try and put a PR together, but I'd need some guidance over what a sensible limit to |
Thanks for investigating! I don't think I have a strong opinion on sensible upper limit, although increasing by a factor of 10 for now (to the 100 MB) you've tested seems reasonable to me. Layers in container images are often larger than 100 MB, so that seems just as safe as the 10 MB "limit" currently imposed. We'd definitely accept a PR here, thank you! cc/ @chrmarti thoughts? |
Sounds good. I guess the affected request shouldn't be redirected anyway (the data transfer would be done twice when the first request replies with a redirect?). |
Using the GitHub Action (https://github.com/devcontainers/action) which has the CLI v0.23.2, I get the following error when adding a 12MB file included with my internal feature. This happens during the
putBlob
function.Full Actions Output with Error
Because there is no Lifecycle hooks for features (see devcontainers/spec#60) I opted to include this 12MB binary file in my feature. Certainly a ~12MB image is OK?
The text was updated successfully, but these errors were encountered: