Souciance, Following is the final request, though with bigger body when it
takes more than 10 seconds.

http4://order-update:8099/orders/v1/update/?httpClient.socketTimeout=60000&httpClient.connectTimeout=60000,
Headers - {CamelHttpMethod=PUT,
CamelHttpRawQuery=auth=lm4Gg6b4df6x44C%2BI9q5wA%3D%3D, Accept-Encoding=gzip,
X-Jabong-Reqid=339fa738-9ff9-4c9b-930e-e12b43d07c16,
X-Jabong-Tid=f8eb228f-8717-4646-8ce7-b8e497c4a503,
Content-Type=application/json}, Body -
{"items":[{"itemId":104911050,"status":"picked"},{"itemId":104823130,"status":"picked"},{"itemId":104948332,"status":"picked"},{"itemId":104949800,"status":"picked"}]}

Exact code that I am using to make the above http request is

private static Exchange makeHttpRequest(final ProducerTemplate producer,
String url, final String body,
            final Map<String, Object> headers, HttpOptions options) {
        if (body == null) {
            return makeHttpRequest(producer, url, headers, options);
        }
        final String httpUrl = setOptionsToURL(url, options);
        return producer.request(httpUrl, new Processor() {
            @Override
            public void process(Exchange exchange) throws Exception {
                LOG.info("Executing the HTTP request : URL - {}, Headers - {}, 
Body - {}",
httpUrl, headers, body);
                exchange.getIn().setHeaders(headers);
                exchange.getIn().setBody(body);
            }
        });
    }



--
View this message in context: 
http://camel.465427.n5.nabble.com/using-apache-camel-org-apache-http-NoHttpResponseException-after-10-seconds-of-request-tp5794285p5794302.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to