Django/nginx/gunicorn giving this in deployment: GET https://.../ net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)
In development my app runs fine, when deployed to my server running django with nginx/gunicorn I get this error on some (not all) pages when I goto them:
GET https://mywebpage.yes.com/longhtmlpage/ net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)
I am not even sure where to start with this one, I only see the error by bringing up the browser's dev console. I know its happening though as the web site 'dies' when I hit a page that produces this error, by dies I mean like the menus don't work and I have to reload not the page causing the error but something like the index.
Never seen this before and not sure where to start hunting it down, I am curious if its some timeout happening? These pages are pretty large of lots of text(copied straight HTML over from an old site and put it into a static django page)
I sort of fixed this based on the suggestions here:
https://github.com/Varying-Vagrant-Vagrants/VVV/issues/324
Primarily sendfile off in the nginx.conf file seemed to make most theerrors go away but now one link that provided the above error just always gives a bad gateway error. So I did also try the suggestion of adding
server {
...
location / {
...
proxy_buffers 8 1024k;
proxy_buffer_size 1024k;
}
}
I don't think this helps if not it makes things works so clearly I am not sure what is causing the bad gatewways to come up sporadically with only a select few links (That do link to very long html files) but still doesn't work.