Skip to content
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

Adding A slack notification or trigger does not work #4172

Open
jupeeter8 opened this issue Dec 3, 2024 · 3 comments
Open

Adding A slack notification or trigger does not work #4172

jupeeter8 opened this issue Dec 3, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@jupeeter8
Copy link

Bug:
When adding notification rule for a schedule or escalation policy the UI shows "unexpected error": Logs Mention missing scope

Logs:
AuthUserID=387cc228-ace3-4a10-b61a-226e513e6359 RequestID=7dcf0686-aab8-472c-a6e4-5cd73fdb425a error="input: setScheduleOnCallNotificationRules missing_scope" host=<host_address> http_method=POST http_proto=HTTP/1.1 referer="<host_address>/schedules/0c98347c-19b3-4973-910d-3bc320eb8b78/on-call-notifications" remote_addr="127.0.0.1:43340" uri=/api/graphql x_forwarded_for=<client_ip> x_forwarded_host=

image

Scopes For the bot
image

Slack credentials are correctly configured

This is how goalert was setup
I have an VM where go alert is already running.

  1. Took a database dump of the existing go alert
  2. Created a new DB and restored the dump to it
  3. Started another instance of go alert on a new VM with the new DB
  4. Created a new Slack Bot
  5. Updated the slack configs in the go alert tool
@jupeeter8 jupeeter8 added the bug Something isn't working label Dec 3, 2024
@mastercactapus
Copy link
Member

Have you tried using the manifest YAML to configure the application in Slack?
image

Here's the current list of scopes in that template:

oauth_config:
  scopes:
    bot:
      - links:read
      - chat:write
      - channels:read
      - groups:read
      - im:read
      - im:write
      - users:read
      - users:read.email
      - usergroups:read
      - usergroups:write
      - team:read

@jupeeter8
Copy link
Author

@mastercactapus Thanks for the input, I'll try this out and see if it works

@jupeeter8
Copy link
Author

@mastercactapus This did not work either, I got it to work by not changing the slack bot. This way i am able to get notifications to the slack but the unexpected error issue is still there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants