views:

106

answers:

1

I am streaming out data (sometimes png, sometimes json, sometimes xml) and I get the following error in Chrome:

Error 321 (net::ERR_INVALID_CHUNKED_ENCODING): Unknown error.

I do not get this error when apache is not in front of my Tomcat web application (servlet), only when I deploy it to our test environment which has apache running.

Thanks...

A: 

I've looked everywhere for an answer to this question, I'm going to put the answer here:

The header entry:

Transfer-Encoding:chunked, chunked

was causing this error when the response was returned through Apache. Without Apache in front everything worked fine.

Should be: Transfer-Encoding:chunked

ballmw
Sorry, the fix was to make the Transfer-Encoding:chunked
ballmw