Example does not work (local machine and glitch)
Description
Describe your issue here.
What type of issue is this? (place an x in one of the [ ])
- [x] bug
- [ ] enhancement (feature request)
- [x] question
- [x] documentation related
- [ ] testing related
- [ ] discussion
Requirements (place an x in each of the [ ])
- [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
- [x] I've read and agree to the Code of Conduct.
- [x] I've searched for any related issues and avoided creating a duplicate issue.
Bug Report
When I run the greet and react example on my local machine or on glitch i end up getting errors on both. Both of the files are glitch and the example on github are different (atleast the .env files and package.json is as well, not sure about are not the same either so I am not sure if I am running into an error
Reproducible in:
Local Machine
@slack/events-api version: 2.0.0
Glitch
@slack/events-api version: 1.0.0
Local Machine
node version: v10.1.0
Glitch
node version: v8.11.3
OS version(s): Microsoft Windows [Version 10.0.17134.228]
Steps to reproduce:
Local Machine
git clone https://github.com/slackapi/node-slack-events-api.gitcd example/greet-and-reactnpm i- rename .env.sample to .env
- fill in info in the .env file
node index.js
Expected result:
What you expected to happen
- program runs
Actual result:
What actually happened brings up an error (see below)
Glitch
- Fill in info in .env file (which btw are not the same in the repo and the file)
- Go to your slack app (create on if you haven't already)
- Go to the events subscription section, fill in your glitch url +
/slack/events
Expected result:
What you expected to happen
- Slack brings up no errors
Actual result:
What actually happened slack brings up an error (see below)
Attachments:
When running on my Local Machine:

When running on Glitch:

I hope all this info is enough to help!
Hey Sidharth, sorry about that. The error message looks incorrect (it should say SlackEventAdapter needs a signing secret) and the Glitch example hasn't been updated yet. I'm working on getting them both fixed. For now, only the Github greet-and-react example should work.
As for the source of the error...the latest release contained an update that replaces the verification method with request signing. As a developer, this means that you need to pass in your app's signing secret rather than the verification token you're likely passing in now. You can find your signing secret right above the verification token on the app configuration page in the "Basic Info" tab:

Would you be able to update the local example to pass in a signing secret, and then let me know if the problem persists?
@sidbav Oops, when I was going through and fixing the example, I realized that the .env had a variable called SLACK_SIGNING_SECRET and in index.js it was passing in (an undefined) SIGNING_SECRET. This was what was likely causing your issue. I cleaned this up in #74 and all should work now 😅
@shanedewael Thank you so much! I can't believe I did not notice that!