You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Data must be a string or a buffer
at TypeError (native)
at Hmac.Hash.update (crypto.js:74:16)
at LineBot.verify (C:\GitRepo\Warframe-Alert-BOT-LINE\node_modules\linebot\lib\linebot.js:30:5)
at parser (C:\GitRepo\Warframe-Alert-BOT-LINE\node_modules\linebot\lib\linebot.js:149:38)
at jsonParser (C:\GitRepo\Warframe-Alert-BOT-LINE\node_modules\body-parser\lib\types\json.js:103:7)
at C:\GitRepo\Warframe-Alert-BOT-LINE\node_modules\linebot\lib\linebot.js:148:4
at Layer.handle [as handle_request] (C:\GitRepo\Warframe-Alert-BOT-LINE\node_modules\express\lib\router\layer.js:95:5)
at next (C:\GitRepo\Warframe-Alert-BOT-LINE\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\GitRepo\Warframe-Alert-BOT-LINE\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\GitRepo\Warframe-Alert-BOT-LINE\node_modules\express\lib\router\layer.js:95:5)
@EkiFauziFirdaus LINE webhook URL is called via POST method instead of GET.
app.post('/linewebhook',linebotParser);`
Also, it assumes that the request body has never been parsed by any body parser before, so it must be placed BEFORE any generic body parser, if there is any.
I got error:
I'm using linebot v1.3.0...
My code:
The text was updated successfully, but these errors were encountered: