| 71 | Logging the raw message reveals that the response message has been chunked with a leading number (something like 28f4) and an ending 0 (http://en.wikipedia.org/wiki/Chunked_transfer_encoding). This cause !RestTemplate couldn't parse the response json correctly and throw the exception. And this has been seen when server is set up with Apache + mod_php + Nginx (1.0.15) Proxy on RHEL 6.5. Because the Content-length header is missing from the response, Apache inserted "Transfer-Encoding: chunked" in response header, but the response body was clean without extra numbers. However, after proxied by nginx, the extra numbers appears in the response body. |