Changes between Version 12 and Version 13 of FAQs


Ignore:
Timestamp:
2014-02-04T08:24:58Z (10 years ago)
Author:
Pan Luo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQs

    v12 v13  
    6969}}}
    7070
    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.
     71Logging 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.
    7272
    7373There are several ways to solve this problem: