ERR_INVALID_CHUNKED_ENCODING from Chrome

when i type chrome://help/ in Chrome's address bar, i get

Version 41.0.2272.101 m Google Chrome is up to date.

but when i try to go to https://twitter.com i get on win8.1:

This web page is not available Hide details The web page at https://twitter.com/ might be temporarily down or it may have moved permanently to a new web address. Error code: ERR_INVALID_CHUNKED_ENCODING

Please note that when i use another computer on my home network, i am able to log on to twitter.

on the win8.1 PC, using internet explorer,
i get a different error for https://twitter.com :

https://twitter.com/sessions This page can’t be displayed
•Make sure the web address https://twitter.com is correct. •Look for the page with your search engine. •Refresh the page in a few minutes.


Follow These Steps

1) First go to control panel > internet options > Connections > LAN Settings.

2) Then Deselect Use Proxy For Your LAN

ERR_INVALID_CHUNKED_ENCODING


For the Chrome error ERR_INVALID_CHUNKED_ENCODING, it can be because of many reasons. For example, if this helps diagnose the problem, I was once sending 0xDE\r\n instead of DE\r\n for the chunk length with chunked encoding. It worked flawlessly with Python's urllib.request and wget. Soon as I used Chrome it with ERR_INVALID_CHUNKED_ENCODING.

The point being that if any specific part of the response is modified by the proxy even when other applications work fine then it is possible you will get this error. It could be an incorrect chunk length or incorrect \r\n delimiters.

The minimal response that works with Chrome currently is:

HTTP/1.1 200 OK\r\n
Transfer-Encoding: chunked\r\n
Connection: <what-is-going-to-happen-to-connection\r\n
\r\n
a\r\n
1234567890\r\n
0\r\n
\r\n

This should help with diagnosing faults for Chrome with invalid chunked encoding errors.