I am having no luck when it comes to configuring the Slack integration. I am following the Slack plugin configuration instruction. I am following the instructions exactly. I am only configuring the Incoming Webhook, not the optional Slash Command. The Incoming Webhook is configured to send a private message to my user.
My Discourse setup is set to require authentication to read content on the site.
I am an Admin in the slack I am connecting to.
Plugin version: Most recent from github
Discourse version: v1.9.0.beta3 +27 (current up to date version)
I rebuild the app and I see the configuration options available. I copy in the proper values and everything saves.
Once everything is configured nothing happens. I setup a private DM as a notification, I setup a Category to notify a channel, I try the Test Notification. None of these post a message to the Slack. No notification anywhere.
I use the webhook URL and I POST a simple json from the command line using cURL. The cURL command works. It pops up directly as a DM to my slack user.
curl -X POST -H 'Content-type: application/json' -d '{"text": "this is a test yo! from the CLI"}' https://hooks.slack.com/services/{redacted}
I looked in the logs and I saw no errors specific to Slack or the plugins. Where would I look for error logs? The plugin is silent, quiet, no failure notices. How can I make it louder when there is an error?
Yes, I tried two filter rules. One that would notify post first to a channel, and a second that would notify my Slack user on any activity. But not both at the same time.
Even if there were no filters, wouldnât the Test Notification still work?
I deleted the initial filter rule, as the slack had renamed the general channel to general-tech.
But I just tried disabling the Slackdoor plugin on our site and indeed, âTest Notificationâ from the official Slack plugin does not work until I re-enable to Slackdoor pluginâŚ
Well, âslackdoorâ, whatever that may be, is not installed on our Discourse dev instance and we definitely get slack messages when new posts are made there.
But⌠I just tried things again this morning, and I cannot reproduce this issue. While the slackdoor plugin is installed but disabled, notifications from the slack plugin still work when triggered by creating a post and by clicking the âTest Notificationâ button on the Slack plugin page.
Not sure what was happening last night when I looked first.
The âtest notificationâ button has some quirks - when you click it, it chooses a random post from your forum to send (could include PMs). Then when it actually tries to send, it checks whether the slack user account is allowed to see the post. If not then it aborts the sending.
Tl;dr: âTest Notificationsâ wonât always work
It doesnât matter what you have access to, it matters what the slack_discourse_user has access to. By default itâs the âsystemâ account. Regardless of permissions, the slack plugin will completely refuse to send private messages, so that could be why the test button isnât working reliably for you.
weâre having the same issue. iâve had one post go through using the âtest notificationsâ button, so it is able to work - but every other post and test has failed to go to our Slack thread
Same issue here. I even posted test post but it is not being passed to slack.
Iâm not using a slackdoor plugin but the official plugin. @UkiahSmith How did you make yours work? Thanks
They should work fine side by side, so itâs up to you. If you have both installed, make sure you donât get confused with the site settings - the new plugin prefixes all of them with âchat integrationâ
@david is the chat integration slack access token required? Or just the chat integration slack outbound webhook url?
Iâm confused why Slack incoming webhook provides url, outbound webhook provides token but in discourse - outbound is webhook url while inbound is the token.
Have you tried following the slack-specific setup instructions?
You need either the access token, OR the Webhook URL. I would recommend the access token, because it enables more functionality like posting slack transcripts to Discourse. These instructions walk you through setting up the token, and assigning the correct permissions: