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

GET http://.../somefile net::ERR_INCOMPLETE_CHUNKED_ENCODING #724

Open
ET-CS opened this issue Feb 27, 2015 · 0 comments
Open

GET http://.../somefile net::ERR_INCOMPLETE_CHUNKED_ENCODING #724

ET-CS opened this issue Feb 27, 2015 · 0 comments

Comments

@ET-CS
Copy link

ET-CS commented Feb 27, 2015

Hi.
I am running Bottle 0.12.8 app behind nginx 1.6.2.
My problem is with static files served using:

@route('/vendor/<filename:path>')
def static_vendor(filename):
    return static_file(filename, root=currentpath+'/vendor')

visiting my website in Chrome 40.0.2214.115 keeps return me this error:

GET http://.../vendor/somefile.css net::ERR_INCOMPLETE_CHUNKED_ENCODING

I am running my run_server.py file using supervisord and the parameters I send to the bottle run function are:

run(host='0.0.0.0', port=7463, debug=True, reloader=True, server='gunicorn')

I've looked everywhere in the web, added several options to nginx like proxy_buffering off; but nothing works.

My nginx .conf file is:

server {
    listen 80;
    server_name ...;

    location / {
        proxy_pass http://127.0.0.1:7463/;
        proxy_connect_timeout 10s;   # instead of 60s default
        proxy_read_timeout 10s;      # instead of 60s default

        # set client headers for proxy
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Scheme $scheme;

        # I've tried those with different values but without help
        #proxy_buffering off;
        #proxy_buffers 8 8k;
        #proxy_busy_buffers_size 16k;
        #proxy_buffer_size 8k;

        # return proxy headers to client
        proxy_pass_header Server;     # pass original server header
    }
}
  • I have gzip enabled at my nginx, if this have any meaning.
  • Note that from the same nginx proxy server I serve static files redirecting Apache, IIS, Golang, Flask and some others. I have this error only in this website using bottle.

Maybe you can help and knows what the problem is.
Thank you in advance, and thank you for a great framework!!

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

1 participant