Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Slack chat.postMessage error handling #1086

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ordovicia
Copy link

Fixes #1048

This pull request fixes the error handling of Slack chat.postMessage API.
The API always returns 200 OK, so we need to inspect the response body indicating whether the request succeeded or not.

This pull request is still in draft -- I am going to add a test for this change.
But before that, I would like some comments on whether this implementation direction is good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slack chat.postMessage errors are not caught
1 participant