question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slash comamnd 401 Unauthorized - slack_bolt_receiver_authenticity_error

See original GitHub issue

Description

Was trying to add slash command to the bot using /slack/events as request url in the app config

But bolt-js response 401 for the ssl_check

It seems its doing verify signature first before response to ssl

But the POST request from Slack doesn’t have signature in the header

So, How can I add slash command and what should its request url be?

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
  • I’ve read and agree to the Code of Conduct.
  • I’ve searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

package version:

node version:

OS version(s):

Steps to reproduce:

  1. Add a new slash command with url /slack/events
  2. App returns 401 unauthorized

Expected result:

Should pass the ssl_check

Actual result:

Not pass the ssl_check instead it’s trying to verify the signature

Attachments:

App output slack_event

The request Screenshot from 2020-09-08 23-59-39

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
dhinson919commented, Apr 27, 2021

This answer may be too late but it might help others. The SLACK_SIGNING_SECRET environment variable is not set correctly for your app. See section ‘Adding your app credentials’ at https://api.slack.com/start/building/bolt-python for an example.

0reactions
seratchcommented, Aug 18, 2021

Hi all in this conversation, I’ve revisited this issue and it seems that we, the SDK maintainers, have provided answers to each question. Thus, let us close this one for now.

If you have a question similar to this topic, please feel free to create a new one with detailed information. We are happy to help you out 👋

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slack App Slash Command - Invalid Signature Detected (401 ...
I'm trying to build a slack app using Java JDK 14, with gradle and ngrok. (and Slack's SDK module, Bolt). So far, I've...
Read more >
Text - GovInfo
Occasionally ``[Reserved]'' is used editorially to indicate that a portion of the CFR was left vacant and not dropped in error. INCORPORATION BY...
Read more >
SUSE-SU-2020:2876-1: critical: Security update for ardana ...
(#22981) * Fix mysterious Babel plugin errors (#22974) * Select: Fixed ... Alerting: Update the types of recipient supported by the Slack ......
Read more >
Change log for 4.9.45
azure-disk-csi-driver · Bug 1994642: Rebase to v1. · doc: cut v1. · fix: disable networkAccessPolicy on Azure Stack Cloud #964 · Bug 1988372: ......
Read more >
the 2 of 3 and 4 0 5 to 6 a 7 in 8 1 9 for 10 image 11 2 12 is 13
... produce 623 add 624 problem 625 metadata 626 schedule 627 sort 628 main 629 october 630 transfer 631 wildlife 632 york 633...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found