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

Couldn't validate the request signature. #66

Closed
Kamalnrf opened this issue Aug 20, 2017 · 3 comments
Closed

Couldn't validate the request signature. #66

Kamalnrf opened this issue Aug 20, 2017 · 3 comments

Comments

@Kamalnrf
Copy link

My bot was working completely fine din't change anything but suddenly I started getting these messages. I'm getting a webhook post but my bot is not responding.
Tried re-validating the webhook, resubscribing the page and also changing the server.

Error: Couldn't validate the request signature. at BootBot._verifyRequestSignature (D:\Kamal\Work\bothook\msg-me\node_modules\bootbot\lib\BootBot.js:455:15) at D:\Kamal\Work\bothook\msg-me\node_modules\body-parser\lib\read.js:100:9 at invokeCallback (D:\Kamal\Work\bothook\msg-me\node_modules\raw-body\index.js:262:16) at done (D:\Kamal\Work\bothook\msg-me\node_modules\raw-body\index.js:251:7) at IncomingMessage.onEnd (D:\Kamal\Work\bothook\msg-me\node_modules\raw-body\index.js:307:7) at emitNone (events.js:105:13) at IncomingMessage.emit (events.js:207:7) at endReadableNT (_stream_readable.js:1045:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9)

@profnandaa
Copy link

Had same issue, mostly likely you have the wrong appSecret set, please counter-check:

const bot = new BootBot({
  accessToken: process.env.PAGE_TOKEN,
  verifyToken: process.env.VERIFY_TOKEN,
  appSecret: process.env.APP_SECRET
});

@mraaroncruz
Copy link
Collaborator

@Kamalnrf I know it's been a while, if you set up the new BootBot() correctly, double check that your app secret is available.

console.log("MY APP SECRET IS: ", process.env.APP_SECRET);

Then run your bot and check the output.

@mraaroncruz
Copy link
Collaborator

Closing due to no response

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

3 participants