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

No message response #4

Open
nanthanwa opened this issue Oct 19, 2017 · 1 comment
Open

No message response #4

nanthanwa opened this issue Oct 19, 2017 · 1 comment

Comments

@nanthanwa
Copy link

in web hook router

const promises = req.body.events.map(event => { return line.client .replyMessage({ replyToken: event.replyToken, messages: [ { type: 'text', text: event.message.text } ] }) }) Promise .all(promises) .then(() => res.json({success: true}))

It should echo the message but nothing and without any error :(

@jwilyandi19
Copy link

jwilyandi19 commented May 14, 2019

you should need signature header.
When I try to execute command, I got following errors instead.
Error: A signature header is required at D:\Storage\Project\LineBot\node_modules\node-line-bot-api\lib\clients\v2\SignatureValidator.js:25:15 at Layer.handle [as handle_request] (D:\Storage\Project\LineBot\node_modules\express\lib\router\layer.js:95:5) at next (D:\Storage\Project\LineBot\node_modules\express\lib\router\route.js:137:13) at Route.dispatch (D:\Storage\Project\LineBot\node_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (D:\Storage\Project\LineBot\node_modules\express\lib\router\layer.js:95:5) at D:\Storage\Project\LineBot\node_modules\express\lib\router\index.js:281:22 at Function.process_params (D:\Storage\Project\LineBot\node_modules\express\lib\router\index.js:335:12) at next (D:\Storage\Project\LineBot\node_modules\express\lib\router\index.js:275:10) at jsonParser (D:\Storage\Project\LineBot\node_modules\body-parser\lib\types\json.js:119:7) at Layer.handle [as handle_request] (D:\Storage\Project\LineBot\node_modules\express\lib\router\layer.js:95:5)

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