aws / aws/aws-eb-python-dockerfiles

Missing buffer size option for wsgi lead to 502

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
61
Forks
33
PR merge metrics
No merged PRs in 30d

Description

When deploying a Flask app to EBS (using the [tutorial](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html)) one can face 502 HTTP status code when returning response with a size bigger than 4096.
```
invalid request block size: 4654 (max 4096)...skip
```

Apparently this script does not contemplate to configure the buffer-size option for WSGI.
After reading the doc about [configuration on EBS](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-container.html#create-deploy-python-custom-container-envprop) I am not sure if I can specify such an option without doing a hacky replace of the `uwsgi-start.sh` script and rerun it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.