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

Signature validation error. #48

Closed
Kamalnrf opened this issue Jun 7, 2017 · 1 comment
Closed

Signature validation error. #48

Kamalnrf opened this issue Jun 7, 2017 · 1 comment

Comments

@Kamalnrf
Copy link

Kamalnrf commented Jun 7, 2017

I want my bot to accept HTTP requests as well so for now what I'm doing something like this

bot.app.get('/', (req, res) => { //Some other stuff });

Now when I'm trying to do POST request with JSON data I was getting "Couldn't validate the request signature." error so for this I had to remove the middleware.

bot.app._router.stack = bot.app._router.stack.slice(0,2)

What I propose is in _verifyRequestSignature check for webhook if it is not let it go as a normal web request.

@mraaroncruz
Copy link
Collaborator

Closing in favor of #84

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

No branches or pull requests

2 participants