Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7A761200B9D for ; Thu, 13 Oct 2016 10:25:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 790F4160AE4; Thu, 13 Oct 2016 08:25:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BBB04160AE3 for ; Thu, 13 Oct 2016 10:25:48 +0200 (CEST) Received: (qmail 87741 invoked by uid 500); 13 Oct 2016 08:25:47 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 31116 invoked by uid 99); 12 Oct 2016 20:22:25 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.5 X-Spam-Level: ** X-Spam-Status: No, score=2.5 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=fispan-com.20150623.gappssmtp.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fispan-com.20150623.gappssmtp.com; s=20150623; h=user-agent:date:subject:from:to:message-id:thread-topic :mime-version; bh=wTgRynnBMHO5s3kAahlbFdcRO5Hfl7+nYNWIafQ3TRg=; b=C036bAkHekHqAhaeQDIy+csONNlNCskRRUpiCS/sbsa8CBvC2WWEIhnTBKkIsCYo8M HQDKNfU/Tc6wDaXHmu9Mr3brQKG1QuAFxEkcu/5LPVki65Evv3MzTl3O46m3lIg0yCXN V1pD24dB2xlNp26Jan9wGTNN6JMGwOZYpFA3jV4ZMh97s4ELuzEeyDxDE0dNXi98nLU2 MZJCrb5sylUfT4eIFgQyn2MhFkOjjZoPCujrINURSnq0j3aybPhZhyA7dQdepSOmWUFL 031dC3C1WvxCfwRYhOWzDPVMJDqrtJ4HwU/c7KipsEFRPBODb4OM1dEaa6PDQsCRtZW/ oDVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:user-agent:date:subject:from:to:message-id :thread-topic:mime-version; bh=wTgRynnBMHO5s3kAahlbFdcRO5Hfl7+nYNWIafQ3TRg=; b=H9xEivRtez+oT/eduAe1A8XSl1pBz+irSAaIOgC4gNj5s2GkpL+2op67sB6gze5pV7 pJGWWt5dXEiJokr4bGs+wGVssZFDdFLOTMgXS5/usJ3P6mfQ/TEeMUSki6hYs99RqdWq RPyikJt5CrgfVvZHUX2ozUnsfR1lbaOsAX+gH1UW17gAOsSs+Fq9DLnOOewgo6KG4+f1 e6DMz7e52omvyPYi7BffLC3ClcOk5h0shPRtW46wvTBYPeF3AzJQ+3AuOYLCJD6GcchO NaKyhltUKdW68q6QKeo7gp1/RPCOpjVVAE4yvMYruewRWy1lJukXqIwHJzEFBFhLzGZJ dFYQ== X-Gm-Message-State: AA6/9RnKVUovKOIB6IVzzKQtvL+YJJ+JT8PrgphrLahmk/4XHmFW9NlQPiOOAIq6C+IG4Q== X-Received: by 10.98.17.11 with SMTP id z11mr4540741pfi.75.1476303737924; Wed, 12 Oct 2016 13:22:17 -0700 (PDT) User-Agent: Microsoft-MacOutlook/f.1b.0.161010 Date: Wed, 12 Oct 2016 13:22:16 -0700 Subject: HTTP keeps retrying after maximumRedeliveries set From: Val To: "users@camel.apache.org" Message-ID: <7DEA96B4-5349-4DC0-97E2-109D3AC67AB9@fispan.com> Thread-Topic: HTTP keeps retrying after maximumRedeliveries set Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3559123337_56340160" archived-at: Thu, 13 Oct 2016 08:25:49 -0000 --B_3559123337_56340160 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable Hello, =20 Could you please advise why automatic retries happen even if I set maximumR= edeliveries to 0? Basically I just want to disable retries. =20 And also, how do I print HTTP response body in case it=E2=80=99s an error code? $= {exception} only has a short description that HTTP call to my URL failed wit= h error code. Server returns details in HTTP response. =20 onException(Exception.class) =C2=A0=C2=A0=C2=A0 .maximumRedeliveries(0); =20 from("direct:send") .setHeader(Exchange.HTTP_METHOD, constant("POST")) .setHeader(Exchange.CONTENT_TYPE, constant("application/json")) .to("http://localhost:8100/") .log("${body}"); =20 In 3 different cases (URL is not available, server code 400 or 500) I get n= umerous retries before it finally stop: =20 2016-10-12 13:11:57.397=C2=A0 INFO 58522 --- [] route2=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : HTTP operation failed invoking= http://localhost:8100/ with statusCode: 400 2016-10-12 13:11:57.397=C2=A0 INFO 58522 --- [] route2 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0: org.apache.camel.http.common.H= ttpOperationFailedException: HTTP operation failed invoking http://localhost= :8100/ with statusCode: 400 2016-10-12 13:11:57.399 ERROR 58522 --- [] o.a.camel.processor.DefaultError= Handler=C2=A0 : Failed delivery for (MessageId: ID-raptor-local-64577-1476303106= 751-0-11 on ExchangeId: ID-raptor-local-64577-1476303106751-0-12). Exhausted= after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperatio= nFailedException: HTTP operation failed invoking http://localhost:8100/ =C2=A0wi= th statusCode: 400. Processed by failure processor: FatalFallbackErrorHandle= r[Pipeline[[Channel[Log(route2)[exchangeExceptionMessage]], Channel[Log(rout= e2)[exchangeException]]]]] =20 --B_3559123337_56340160--