[ 
https://issues.apache.org/jira/browse/CAMEL-23627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-23627.
---------------------------------
    Resolution: Fixed

Thanks for reporting and the PR

> 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.18.0, 4.19.0, 4.20.0
>            Reporter: Andrea Giordano
>            Priority: Minor
>             Fix For: 4.18.3, 4.21.0
>
>
> 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