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

Cannot perform actions in slack ( acknowledge, resolve, ...), logs show 403 forbidden #3382

Closed
kakathinh42 opened this issue Nov 20, 2023 · 2 comments
Labels
bug Something isn't working part:chatops

Comments

@kakathinh42
Copy link

What went wrong?

What happened:

  • I have deployed a docker stack "Grafana Oncall" with setting.hobby, setting env for Slack can integrate with Oncall.

  • When I click to Resolve or Acknowledge an alert in Slack, It will show an error: This app responded with status code 403 but everything worked fine when I tried integrated with Telegram. Seems I can't curl with POST request to api_url: <ONCALL_ENGINE_PUBLIC_URL>/slack/interactive_api_endpoint/

What did you expect to happen:

  • Can interact with the button Resolve, Silence, and Acknowledge on the Slack channel.

How do we reproduce it?

Click to button Resolve on the Slack channel
It will show "This app responded with status code 403"

Grafana OnCall Version

1.3.59

Product Area

Chatops

Grafana OnCall Platform?

Docker

User's Browser?

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36

Anything else to add?

logs:

2023-11-17 10:51:53 source=engine:app google_trace_id=none logger=django.request Forbidden: /slack/event_api_endpoint/
2023-11-17 10:51:53 source=engine:uwsgi status=403 method=POST path=/slack/event_api_endpoint/ latency=0.005135 google_trace_id=- protocol=HTTP/1.1 resp_size=262 req_body_size=3421
2023-11-17 10:51:54 source=engine:app google_trace_id=none logger=apps.slack.views Request id: None
2023-11-17 10:51:54 source=engine:app google_trace_id=none logger=root inbound latency=0.003852 status=403 method=POST path=/slack/event_api_endpoint/ user_agent=Slackbot 1.0 (+https://api.slack.com/robots) content-length=3421 slow=0 
2023-11-17 10:51:54 source=engine:app google_trace_id=none logger=django.request Forbidden: /slack/event_api_endpoint/
2023-11-17 10:51:54 source=engine:uwsgi status=403 method=POST path=/slack/event_api_endpoint/ latency=0.007409 google_trace_id=- protocol=HTTP/1.1 resp_size=262 req_body_size=3421
@kakathinh42 kakathinh42 added the bug Something isn't working label Nov 20, 2023
@kakathinh42 kakathinh42 changed the title Cannot interact with button in slack ( acknowledge, resolve, ...), logs show 403 forbidden Cannot perform actions in slack ( acknowledge, resolve, ...), logs show 403 forbidden Nov 21, 2023
@kakathinh42
Copy link
Author

Hello, anyone help me please :<

@kakathinh42
Copy link
Author

When I dug into the config, I found I pasted the wrong SIGNGING_SECRECT on the Oncall configuration.

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

No branches or pull requests

1 participant