Skip to content
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

net::ERR_INCOMPLETE_CHUNKED_ENCODING #30

Closed
mbernico opened this issue Nov 6, 2017 · 2 comments
Closed

net::ERR_INCOMPLETE_CHUNKED_ENCODING #30

mbernico opened this issue Nov 6, 2017 · 2 comments

Comments

@mbernico
Copy link

mbernico commented Nov 6, 2017

I have a jquery front end that is trying to send images to an app inside the uwsgi-nginx-flask-docker container.

The javascript console is saying this:
jquery.min.js:4 POST http://localhost:8000/predict/ net::ERR_INCOMPLETE_CHUNKED_ENCODING

If I use the same app with only gunicorn it works ok, so I'm suspecting this is related to nginix configuration inside the container?

more Dockerfile
FROM tiangolo/uwsgi-nginx-flask:python3.6

COPY ./app /app

RUN pip install -r requirements.txt

On the client side I'm using this plugin to submit the form using ajax http://malsup.com/jquery/form/

@tiangolo
Copy link
Owner

tiangolo commented Dec 4, 2017

Check what the log in your Docker container is saying.

docker logs my-container

Also try the advanced instructions to discard Nginx and see if that's what is creating the actual problem: https://github.com/tiangolo/uwsgi-nginx-flask-docker#more-advanced-development-instructions

@tiangolo
Copy link
Owner

As this issue is a bit old, I'll assume your problem was solved and close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants