net::ERR_INCOMPLETE_CHUNKED_ENCODING in Chrome only

前端 未结 12 1355
甜味超标
甜味超标 2020-11-28 13:57

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

net::ERR_INCOMPLETE_CHUNKED_ENCODING 

These pages don\'t do anything special and

相关标签:
12条回答
  • 2020-11-28 14:46

    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.

    0 讨论(0)
  • 2020-11-28 14:48

    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.

    0 讨论(0)
  • 2020-11-28 14:51

    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!

    0 讨论(0)
  • 2020-11-28 14:55

    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.

    0 讨论(0)
  • 2020-11-28 14:55

    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'
    ));
    
    0 讨论(0)
  • 2020-11-28 14:59

    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();
    
    0 讨论(0)
提交回复
热议问题