Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

net::ERR_INCOMPLETE_CHUNKED_ENCODING in Chrome only

I've been getting this error when loading certain pages:

net::ERR_INCOMPLETE_CHUNKED_ENCODING  

These pages don't do anything special and everything seems to work in other browsers. The pages that this happens on display data in JSON. It only happens when the JSON page has to display a large amount of items. The rails console is not displaying any errors (200 response).

like image 728
StefanDorresteijn Avatar asked Mar 24 '14 11:03

StefanDorresteijn


2 Answers

I encountered this problem yesterday. It's because the server didn't respond with some resources.

In my page, I have some large file links like <a href="/file_path">file_name</a>. This happened only in Chrome.

After awhile, I recognized this may be caused by Chrome's 'Predict network actions to improve page load performance' feature. So, I turned off this feature in chrome://settings and tried it again. As expected, the error didn't occur again.

After that, I changed resource links to have full_url_path instead of relative_path. In Rails, use resource_url instead of resource_path. Then I didn't have to turn off Chrome's feature, and it looks good.

like image 198
gavin1986 Avatar answered Sep 19 '22 00:09

gavin1986


I had this with a Wordpress website, also only in Chrome.

Updating the website and its plugins to the latest version didn't help, and other people didn't seem to have the same problem when visiting the website, but then I saw this post, turned off my antivirus (avast) real-time shields, as suggested, and the problem went away.

NOTE: The Real-Time Protection on some of the various anti-virus programs (AVAST, Kapersky and ESET) seem to be a major cause of this error.

like image 37
bjdmeest Avatar answered Sep 22 '22 00:09

bjdmeest