Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
OK. I've triple-tested this and I am 100% sure that it is being caused by my anti-virus (ESET NOD32 ANTIVIRUS 5).
Whenever I disable the Real-Time protection, the issue disappears. Today, I left the Real-Time protection off for 6-7 hours and the issue never occurred.
A few moments ago, I switched it back on, only for the problem to surface within a minute.
Over the course of the last 24 hours, I have switched the Real-Time protection on and off again, just to be sure. Each time - the result has been the same.
Update: I have come across another developer who had the exact same problem with the Real-Time protection on his Kaspersky anti-virus. He disabled it and the problem went away. i.e. This issue doesn't seem to be limited to ESET.
Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING
You might want to check if the folder /var/lib/nginx
is owned by www-data
too. I had this problem that, when the response page was too big, the Nginx worker process tried to use this folder and failed, because it was owned by nginx
and the worker process ran under www-data
. By doing chown -R www-data:www-data /var/lib/nginx
, the problem was fixed.
Getting net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 when consuming event-stream using EventSource in ReactJs
I'm not a Node.js expert myself, but it looks like you miss "'Connection': 'keep-alive'" and a "\n" after that - i.e.:
response es.writeHead(200, {
'Content-Type': 'text/event-stream',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive'
});
response.write('\n');
see https://jasonbutz.info/2018/08/server-sent-events-with-node/. Hope it works!
Related Topics
How to Remove the Extra Square Bracket from Json Having Multiple Arrays
Regex for No More Than 5 Digits or Contain String
How to Check, If a PHP String Contains Only English Letters and Digits
Dompdf Table Fixed Column Width and Break Long Text
Block Direct Access to a File Over Http But Allow PHP Script Access
How to Add Class to Link in Wp_Nav_Menu
Cannot Simply Use Postgresql Table Name ("Relation Does Not Exist")
How to Sort a Multi-Dimensional Array by Value
Call to a Member Function on a Non-Object
Install PHP Intl Extension on Macos
Comparing Date from Variable to MySQL Date
How to Pass Variable Between Two Web Pages With PHP Without Using Session
Add Space After Every 4Th Character
Laravel - How to Join 2 Tables from Different Db Connection
Combining 'Where' and 'Like' Statements by Using the Ci Activerecords