Skip to content

Cannot enable events URL in Slack API using Bolt app #376

@brendanmckeown

Description

@brendanmckeown

Description

I am running a Bolt app locally, proxied with ngrok, and the Slack API Enable Subscriptions page will not verify the Events Request URL. In the ngrok inspector, it looks like the response is correct, but on the Slack API page, I receive the error "Your URL didn't respond with the value of the challenge parameter." but no other information.

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:
1.5.0

node version:
12.13.1

OS version(s):
macOS 10.13.6

Steps to reproduce:

I am following the "Getting Started" instructions on this page

  1. On Slack API page, create a new Slack app for a workspace, then create a new bot user
  2. Copy the signing secret and bot auth token
  3. On local machine, setup new Bolt project:
  • Create directory
  • npm init
  • npm i -S @slack/bolt
  • set environment variables copied above
  • create app.js and paste contents from instructions
  • start app
  1. On local machine, start ngrok to proxy http port 3000
  2. On Slack API Events Subscriptions page, enable events, then in the Request URL field, post the ngrok https URL followed by /slack/events path.

Expected result:

Events URL is verified

Actual result:

Bolt app responds to event URL verification request, but the Slack API page is unable to verify the URL and displays the error, "Your URL didn't respond with the value of the challenge parameter."

Attachments:

Slack API Events URL verification error:
image

Request in ngrok inspector:
image

Response in ngrok inspector:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoAn issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more info

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions