self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

sentry and slack integration error

Open balaG4046 opened this issue 2 years ago • 18 comments

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

image

Expected Result

it should work without any issue

Actual Result

image

Event ID

No response

balaG4046 avatar Oct 27 '23 14:10 balaG4046

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar Oct 27 '23 20:10 getsantry[bot]

Routing to @getsentry/product-owners-settings-integrations for triage ⏲️

getsantry[bot] avatar Oct 27 '23 20:10 getsantry[bot]

@hubertdeng123 can you please help here

Dhrumil-Sentry avatar Oct 27 '23 21:10 Dhrumil-Sentry

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

hubertdeng123 avatar Oct 27 '23 21:10 hubertdeng123

image

Yes all scope is added already, still facing the issue .

Thanks!

balaG4046 avatar Oct 30 '23 08:10 balaG4046

Hi Team,

Any update here.

Thanks!

balaG4046 avatar Nov 01 '23 06:11 balaG4046

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!

17hogeju avatar Nov 01 '23 20:11 17hogeju

Hi

In slack or in sentry logs ? which one i need to look for this event.

Thanks!

balaG4046 avatar Nov 02 '23 08:11 balaG4046

sentry logs, i'd make sure the request is at least reaching your sentry server

scttcper avatar Nov 03 '23 16:11 scttcper

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 image

but when we are resolving or ignore in slack it throws me a error - please refer the below screenshot

image

Thanks!

balaG4046 avatar Nov 07 '23 10:11 balaG4046

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

scttcper avatar Nov 07 '23 21:11 scttcper

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

balaG4046 avatar Nov 08 '23 15:11 balaG4046

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

scttcper avatar Nov 08 '23 16:11 scttcper

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?

balaG4046 avatar Nov 10 '23 10:11 balaG4046

No more ideas here, sorry! I wish you luck in figuring out what might be going wrong here

hubertdeng123 avatar Nov 13 '23 17:11 hubertdeng123

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!

balaG4046 avatar Nov 16 '23 14:11 balaG4046

@hubertdeng123 any ideas on where that error would go

scttcper avatar Nov 16 '23 19:11 scttcper

Hmmm, not entirely sure. Could you set the SENTRY_LOG_LEVEL to info or debug? Wondering if that might give us more info

hubertdeng123 avatar Nov 17 '23 23:11 hubertdeng123