openwhisk-devtools
openwhisk-devtools copied to clipboard
Docker Compose limiting action size to 512KB?
User has reported an issue deploying larger actions with error returned: 413 Request Entity Too Large
.
I've started devtools using docker compose and can reproduce the issue using the following command.
mkfile -n 512k source.js; ls -lh source.js; wsk action create test --kind nodejs:6 source.js -v
This is the response body from the CLI command.
<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>openresty/1.13.6.1</center>
</body>
</html>
Using a file with less than 512KB doesn't have this issue, e.g. mkfile -n 511k
. Looks like the default body size configuration from nginx in the api gateway service could be set as 512k?
https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
If this is correct, can we update it to be the same as the maximum file size (48MB) for actions?
Any workaround for this? This issue prevents me from using openwhisk locally...
@matthewpflueger Have you tried setting that configuration value for NGINX to a higher default and seeing if that helps?
Is there an update on this issue? I am facing the same and can't resolve it...