camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From souciance <souciance.eqdam.ras...@gmail.com>
Subject Re: using apache camel : org.apache.http.NoHttpResponseException after 10 seconds of request
Date Thu, 23 Feb 2017 03:55:41 GMT
You may wanna look here:
http://camel.465427.n5.nabble.com/soTimeout-ignored-by-camel-http-component-td5746289.html#a5746290



On Thu, Feb 23, 2017 at 3:04 AM, ishant_ag [via Camel] <
ml-node+s465427n5794302h25@n5.nabble.com> wrote:

>
> 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);
>             }
>         });
>     }
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/using-apache-camel-org-apache-http-
> NoHttpResponseException-after-10-seconds-of-request-tp5794285p5794302.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h31@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/using-apache-camel-org-apache-http-NoHttpResponseException-after-10-seconds-of-request-tp5794285p5794303.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message