sentry and slack integration error
Self-Hosted Version
23.10.1
CPU Architecture
x86
Docker Version
20.10.16
Docker Compose Version
2.6.0
Steps to Reproduce
Hi team i have followed the below document and completed the setup - https://develop.sentry.dev/integrations/slack/ , however now i have tried to send test slack notification from sentry it sent successfully but in slack when i click resolve or ignore button unfortunately it is not working - kindly help me resolve the issue
Expected Result
it should work without any issue
Actual Result
Event ID
No response
Assigning to @getsentry/support for routing ⏲️
Routing to @getsentry/product-owners-settings-integrations for triage ⏲️
@hubertdeng123 can you please help here
Have you double checked to ensure that the your app has the correct bot permissions?
Bot Scopes:
channels:read
chat:write
chat:write.customize
chat:write.public
commands
groups:read
im:history
im:read
links:read
links:write
team:read
users:read
User Scopes:
links:read
users:read
users:read.email
Yes all scope is added already, still facing the issue .
Thanks!
Hi Team,
Any update here.
Thanks!
Hi @balaG4046 ! Could you go to your logs and look for the event: slack.action.response-error? This might give us some insight as to what the specific error is. Thanks!
Hi
In slack or in sentry logs ? which one i need to look for this event.
Thanks!
sentry logs, i'd make sure the request is at least reaching your sentry server
Hi
Below are the logs found in sentry - please refer the below,
08:00:02 [INFO] sentry.access.api: api.access (method='POST' view='sentry.api.endpoints.relay.project_configs.RelayProjectConfigsEndpoint' response=200 user_id='None' is_app='None' token_type='None' is_frontend_request='False' organization_id='None' auth_id='None' path='/api/0/relays/projectconfigs/' caller_ip'xxxxxxxxxx' user_agent='None' rate_limited='False' rate_limit_category='None' request_duration_seconds=0.01648712158203125 rate_limit_type='DNE' concurrent_limit='None' concurrent_requests='None' reset_time='None' group='None' limit='None' remaining='None')
however while we are sending the test notification in sentry to slack notification is failed but when we are using channel id then notification is sending successfully - please refer the screenshot
but when we are resolving or ignore in slack it throws me a error - please refer the below screenshot
Thanks!
i don't think RelayProjectConfigsEndpoint is what we're looking for. I think you should make sure your sentry instance is accessible to the public / slack
Hi @scttcper it is accessbile, even notification sending from sentry to slack without a issue but when we clicking the button resolve or ignore slack bot responding "oh somenthing went wrong" i have checked the bot scopes and permission as per the below documentation we have configured the integration https://develop.sentry.dev/integrations/slack/
Thanks
Reaching the internet seems to be no problem, but can slack contact your sentry instance. This is usually the problem if there's any firewall in the way. If there's no logs it likely can't reach the webhook url given to slack
hi there is no firewall is added, however we can successfully integrated with other tools in our sentry without a issue.
only that when we clicking the buttons in slack it ends with error, is that some to check in redirect url while creation of app in slack?
No more ideas here, sorry! I wish you luck in figuring out what might be going wrong here
Hi @scttcper
we got the below error in sentry logs
- xx.xx.x.xx - - [16/Nov/2023:10:59:25 +0000] "POST /extensions/slack/action/ HTTP/1.1" 500 72 "-" "Slackbot 1.0 (+https://api.slack.com/robots)"%22) "xx.xx.x.xx" this is the error
Can you able to help here..
Thanks!
@hubertdeng123 any ideas on where that error would go
Hmmm, not entirely sure. Could you set the SENTRY_LOG_LEVEL to info or debug? Wondering if that might give us more info