Anil created CAMEL-12939:
----------------------------
Summary: While converting response data into json format coming
from Rest call getting ERR_CONTENT_LENGTH_MISMATCH
Key: CAMEL-12939
URL: https://issues.apache.org/jira/browse/CAMEL-12939
Project: Camel
Issue Type: Bug
Components: camel-restlet
Reporter: Anil
Hi Team,
I am getting *ERR_CONTENT_LENGTH_MISMATCH,* while converting response data into
json format that is coming from another HTTP Rest call. data is not fully
converted into json and partially data is converted into json.
<json allowJmsType="true" id="json" include="NON_NULL"
library="Jackson" useList="true" />
<get consumes="application/json" uri="/edit?\{id}">
<route streamCache="true">
<log loggingLevel="INFO" message="${header.id}" />
<removeHeaders pattern="CamelHttp*" />
<removeHeaders pattern="Content-Length" />
<setHeader headerName="Exchange.HTTP_METHOD"
id="edit_setHeader1">
<constant>GET</constant>
</setHeader>
<setHeader headerName="Exchange.HTTP_QUERY">
<simple>id=1809</simple>
</setHeader>
<to
uri="http4:EDIT_URL?bridgeEndpoint=true&throwExceptionOnFailure=false" />
<log message="Test112 ${body}" />
<convertBodyTo type="java.lang.String" />
<unmarshal ref="json" />
</route>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)