Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12939

While converting response data into json format coming from Rest call getting ERR_CONTENT_LENGTH_MISMATCH

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • camel-restlet
    • None
    • Unknown

    Description

      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>

       

       

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            anilkokate2009 Anil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: