Andrea Giordano created CAMEL-23627:
---------------------------------------

             Summary: Exception not caught when Slack returns a response code > 
299
                 Key: CAMEL-23627
                 URL: https://issues.apache.org/jira/browse/CAMEL-23627
             Project: Camel
          Issue Type: Bug
          Components: camel-slack
    Affects Versions: 4.20.0, 4.19.0, 4.18.0
            Reporter: Andrea Giordano


The SlackProducer calls 
{code:java}
callback.done(true){code}
before checking possible errors in the Slack response. This leads the route to 
resume and terminate successfully, making the exception bubble up and not being 
caught in onException policies (this affects both the webhook as well as the 
token methods).

Moving the response error check in the try block should suffice.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to