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).
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With