apache / apache/openwhisk-devtools
Docker Compose limiting action size to 512KB?
- Dominant language
- JavaScript
- Stars
- 181
- Forks
- 124
- PR merge metrics
- No merged PRs in 30d
Description
User [has reported](
https://stackoverflow.com/questions/50203277/openwhisk-request-entity-too-large?noredirect=1#comment87573429_50203277) 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.
```
413 Request Entity Too Large
413 Request Entity Too Large
openresty/1.13.6.1
```
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?
Contributor guide
Assessment
This issue has not been assessed yet.