orpiske commented on pull request #4033:
URL: https://github.com/apache/camel/pull/4033#issuecomment-662463594


   With this patch, if there are errors ... For example, if the Slack 
permissions/scopes are missing, the error is raised and the details are logged. 
   
   Here's an example of trying to poll messages from Slack without the proper 
scopes:
   
   ```
   2020-07-22 15:40:02,816 [/opensourcetest] WARN 
org.apache.camel.component.slack.SlackConsumer - Consumer 
Consumer[slack://opensourcetest?maxResults=1&token=removed] failed polling 
endpoint: slack://opensourcetest?maxResults=1&token=removed. Will try again at 
next poll. Caused by: [org.apache.camel.RuntimeCamelException - API request to 
Slack failed: missing_scope]
   org.apache.camel.RuntimeCamelException: API request to Slack failed: 
missing_scope
        at 
org.apache.camel.component.slack.SlackConsumer.checkSlackReply(SlackConsumer.java:171)
 ~[camel-slack-3.4.2-SNAPSHOT.jar:3.4.2-SNAPSHOT]
        ...
   ``` 
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to