Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Bot does not respond to my slack calls. #29

Open
icodefortacos opened this issue Nov 6, 2019 · 1 comment
Open

Bot does not respond to my slack calls. #29

icodefortacos opened this issue Nov 6, 2019 · 1 comment

Comments

@icodefortacos
Copy link

I installed on a local web server, but this is the only output. Not sure if it's related to npm module versions.

::ffff:x.x.x.x POST / Slackbot 1.0 (+https://api.slack.com/robots)
TypeError: Cannot read property 'trim' of undefined
at validateToken (/root/working-plusplus-master/src/app.js:52:22)
at handlePost (/root/working-plusplus-master/src/app.js:128:22)
at Layer.handle [as handle_request] (/root/working-plusplus-master/node_modules/express/lib/router/layer.js:95:5)
at next (/root/working-plusplus-master/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/root/working-plusplus-master/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/root/working-plusplus-master/node_modules/express/lib/router/layer.js:95:5)
at /root/working-plusplus-master/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/root/working-plusplus-master/node_modules/express/lib/router/index.js:335:12)
at next (/root/working-plusplus-master/node_modules/express/lib/router/index.js:275:10)
at /root/working-plusplus-master/node_modules/body-parser/lib/read.js:130:5

@tdmalone
Copy link
Owner

tdmalone commented Nov 6, 2019

Hi @icodefortacos,

We could probably be generating a better error there, but it seems like the SLACK_VERIFICATION_TOKEN environment variable might not be set, or available to the web server.

The installation process is somewhat guided when using Heroku, but unfortunately I never got around to writing this section of the readme which was meant to list the steps for installation elsewhere 😆

Unfortunately I'm strapped for time so can't do that right now, so you might need to do a bit of digging and stepping through the code to work out the local install steps (if you do - please feel free to contribute some documentation back!) otherwise I can recommend Heroku for now, which is usually free and pretty easy to set up as per the readme.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants