I\'ve been getting this error when loading certain pages:
net::ERR_INCOMPLETE_CHUNKED_ENCODING
These pages don\'t do anything special and
At least for Java Web Application, and more specifically using JSPs, I have seen this happening when JSP are messed up. So, make sure your JSPs are correct.
Please check your radware load balancer configuration. The setting for “FastView” and “APM” features can cause this issue. In my case it will get fixed after disabling those.
If having problems with symfony4 apache2, take a look at this answer
as summary, you have to disable FallbackResource/index.php
into your virtualhost configuration file, next, you may want to run composer install symfony/apache-bundle
and fix your /etc/apache2/apache.conf
changing AllowOverride none
for AllowOverride All
, in order to enable the .htaccess file created in the installation recipe run, at the end, by restarting apache2 service (sudo service apache2 restart
) the site must load without /index.php at the end of the URI.
Hope this helps someone!
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.
In my case, the problem was cache-related and was happening when doing a CORS request.
As stated in comments above:
the error seemed to appear randomly
This is because of the Http cache system.
Forcing the response header Cache-Control
to no-cache
resolved my issue:
[ using Symfony HttpFoundation component ]
<?php
$response->headers->add(array(
'Cache-Control' => 'no-cache'
));
If you have opened any streams for the response those must be closed. For example code if you have opened a ServletOutputStream to download the zip directory the stream need to be closed as follows.
ServletOutputStream sos = response.getOutputStream();
response.setContentType("application/zip");
response.setHeader("Content-Disposition", "attachment;filename=project.ZIP");
sos.write(zip);
sos.flush();
sos.close();