-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Slack Integration: Inability to connect private channel #7897
Comments
Thanks for the report! We added support for reporting to private channels just yesterday 18ae499. Because of how Slack apps work, and because the ability to verify that the integration has access to private channels requires a new permission, you will need to re-install the integration. You can simply click 'Add Integration' and go through the setup again (without needing to remove the already configured workspace) and it will grant you the new permissions. You've already got the app added into the private channel, but for other private channels you might want to add it into you can simply issue Let me know if there's any problems! |
Hi, thanks for quick response. I had to remove workspace and to add it anew for it to work. Probably not a place to mention this, but maybe you can give me a quick reference:
|
hey @evanpurkhiser , I just added the integration this morning (1 hour ago). And I'm getting same error message when attempting to edit the rule so it posts to my private channel. I tried entering both "#naranja-mecanica" and "naranja-mecanica". None worked.. NOTE: I used "GLOBAL INTEGRATIONS" It is first time I added Sentry Slack integration; no looks like it is not fixed..? |
@SuEric what helped in my case:
My previously added via slack private channel was already listed in settings as added individually. |
Ahh this just clicked, this is likely the issue here. Will look into this in the next couple hours :) |
Fix going out right now for this! #7929 |
Also @TuxujPes
That's fixed in #7928 :) Also going out atm |
You're able to add it to public channels right @ericjeker ? |
Yes, public channels are fine. But not the private ones. I tried to reinstall the workspace also but it didn't work. |
@ericjeker does your slack have a lot of channels? #11064 is potentially related. |
Currently we have about 30 private channels and hidden channels. So no we are not up to 1000 channels. |
Yasss, what should you guys do is just click on "All Public Channels" on Sentry Settings |
I'm still having this issue. I've tried removing/adding the workspace. Kicking/inviting the app from the channel. Still getting the error mentioned above. |
I have the same issue, Sentry is explicitly added to our shared workspace but cannot see it. |
I have the same issue, I 've tried removing and adding the sentry slack app but didn't work. |
I'm actually seeing the same issue as well. |
@evanpurkhiser Can we do something? Can we help you with something? Thanks. |
Seeing problems adding Sentry to private channels here, too, @evanpurkhiser.. It's not unlikely that our workspace might have > 1000 channels (how would I even know?) as we're around 8k users, so possibly we're affected by #11064 - any work happening there? It seems to have stalled a bit :) |
I have checked and its because sentry uses old endpoint: (does not include private channels.) https://api.slack.com/methods/channels.list
|
@lcmartinezdev keep reading :) sentry/src/sentry/integrations/slack/notify_action.py Lines 196 to 201 in 8bcd041
However, I can also reproduce this in production. We're unfortunately a little bit at the mercy of slack right now, as we're on their "new-but-depcreated" workspaces API (See #9004). But it very well could be that slack has made some kind of breaking change. We're working with slack right now to get some fixes in (which requires their intervention with our "legacy worksapce app") so I ask that you guys sit tight, and we'll update this thread when we can get a fix in place. |
I didn't see it. |
Is a fix for this still in progress? |
I'd actually love to hear from you guys again specifically from those who are:
Let em know your sentry organization slug and @wedamija or myself can take a closer look at what's going on. |
@evanpurkhiser My organization slug is: Let me know if I can help with some action. Thanks |
@lcmartinezdev if it's not a problem to ask publicly, what is the name of the private channel you're trying to add? |
@evanpurkhiser |
@lcmartinezdev I've been investigating your issue. When I tested this with my own private channel I was unable to reproduce, but I could easily reproduce it with yours, and so reached out to Slack to figure out what's going wrong. Unfortunately, it turns out that this is a known bug on Slack's side. The issue occurs only with channels that were previously public and then converted over to private, and we're just not able to access them via our workspace app due to this bug. For the moment there's not a lot we can do to help you out. Slack will let us know when they've resolved the issue, and as a workaround you could create a new private channel and that should work as expected with our integration. |
@wedamija Thanks. I will ask to Slack support in order to know how to fix the issue. |
have the same problem here, hoping for a fix... |
What helped me is creating new private channel and then adding Sentry app ( |
@evanpurkhiser actually, the documentation says this behavior is intentional.
While deleting the channel and creating it again might be a good way to go, we lose all the channel history, months and months of discussions, plannings, etc. The only option available is to use corporate exports, which requires a Plus plan and manual approval... It would be great if the new method |
Hello, no news on this issue? Tks :) |
Btw, it works for private channels (created a new one here and worked) but not for public ones |
Contacted Slack support and follow their answer:
|
This method helped me |
Didn't manage to integrate newly created public channel(Altough in sentry.io it works like a charm) |
still an issue, can integrate with public channels, but not private ones, i have added many permissions to the slack app, and added the sentry app to my private channel, still shows this error:
|
same here |
Will this ever be possible? Really annoying Update: Used a workaround via Zapier. |
Ugh. I had this working for months, but then I needed to change the alert settings to only send alerts on specific environments. I removed our existing integration and now I'm not able to configure alerts to private channels either. We cannot post sentry alerts to public channels because of potential sensitive information held within them. This is a crucial feature in my opinion, and it sucks that we've just lost it, having had it before. PS. we're using sentry.io and get the same error as others:
Edit: Got it to work by reading the rest of the comments in here and creating a new private channel to use since we must have created the channel as public previously and then made it private. That's an annoying bug. |
You can actually easily fix it by manually adding the private channel to the integration. Open slack in your browser & navigate to the apps. Select Sentry => Settings => click on "Add App to channel" button. Search for the private channel in the input field that shows, then click it to add. |
There's a trick to make it post to a private channel that was public before, if you really need it, by directly updating alert rule configuration in DB. Suppose you have a channel name:
This should be everything. You will not be able to edit the form again as it will keep failing validation on save, but Sentry should be able to use stored value. If you need to change anything, just repeat above steps. |
Slack api https://slack.com/api/channels.* is deprecated see: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api All new slack apps created after June 10th, 2020 will give error, which creates issue for on premise sentry. This commit fixes the issue by adding `slack.legacy-app=(true/false)` config so that it continues support for legacy slack apps while new apps can toggle this option for new slack API support Resolves: getsentry#7897
Slack api https://slack.com/api/channels.* is deprecated see: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api All new slack apps created after June 10th, 2020 will give error, which creates issue for on premise sentry. This commit fixes the issue by adding `slack.legacy-app=(true/false)` config so that it continues support for legacy slack apps while new apps can toggle this option for new slack API support Resolves: getsentry#7897
Slack api https://slack.com/api/channels.* is deprecated see: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api All new slack apps created after June 10th, 2020 will give error, which creates issue for on premise sentry. This commit fixes the issue by adding `slack.legacy-app=(true/false)` config so that it continues support for legacy slack apps while new apps can toggle this option for new slack API support Resolves: #7897
Reporting Bugs
New sentry plugin cannot be connected to private channel even though sentry is added to it.
Additional Notes:
Edit by @evanpurkhiser: See @wedamija's comment here: #7897 (comment)
The text was updated successfully, but these errors were encountered: