PeteGoo / tcSlackBuildNotifier

Posts build notifications to Slack
MIT License
311 stars 79 forks source link

Getting channel_not_found, even though the channel exists #163

Open mookid8000 opened 6 years ago

mookid8000 commented 6 years ago

I configured the notifier to send notifications to a channel called #teamcity, and the "Send test notification" button works as it should.

However, when I configure Slack Notifier under "Notification Rules" for my user account on TeamCity, I cannot seem to configure it to correctly notify my Slack user when I break the build.

I configured the Slack Username to be Mogens Heller Grabe, but the TeamCity Server log just keeps saying this:

[2018-10-09 16:31:22,819]  ERROR -   jetbrains.buildServer.SERVER - NotificationUtility :: 
SlackNotification failed : @Mogens Heller Grabe returned error channel_not_found 

This happens with v. 1.4.6, which I installed for the first time yesterday, and also with 1.4.7, which I upgraded to today.

Is there something wrong with me? 🤔 or can anyone help me figure out how to solve this?

marvin-w commented 6 years ago

Hi @mookid8000, as far as I know there is a difference in slack between the display name and the actual username.

I don't believe usernames can contain whitespaces so you may wantnto recheck whether you have actually used the right value in the username field.