Not working when verifying webhook URL on LINE platform
See original GitHub issueVersion of Bottender: "bottender": "^0.14.3",
Steps to reproduce:
- start the server with any endpoint eg:
const server = createServer(bot, { path: '/webhook' });
- press the Verify on https://developers.line.me/console after changed a new webhook URL
- a mock message will be sent from LINE to our server, and it will be something like this eg:
"events": [
{
"replyToken": "00000000000000000000000000000000",
"type": "message",
"timestamp": 1512777897980,
"source": {
"type": "user",
"userId": "Udeadbeefdeadbeefdeadbeefdeadbeef"
},
"message": {
"id": "100001",
"type": "text",
"text": "Hello, world"
}
},
{
"replyToken": "ffffffffffffffffffffffffffffffff",
"type": "message",
"timestamp": 1512777897980,
"source": {
"type": "user",
"userId": "Udeadbeefdeadbeefdeadbeefdeadbeef"
},
"message": {
"id": "100002",
"type": "sticker",
"packageId": "1",
"stickerId": "1"
}
}
]
}
internal/process/warning.js:18 (node:16291) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: LINE API - Not found
this error will be logged, and it is due to the unhandled promise rejection inlib/express/createMiddleware.js:12
Is this a bug or a behavior? If it is a behavior, how can I handle the promise rejection?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
Complete Guide to Troubleshooting and Debugging Webhooks
Receiving webhooks ; Check if the webhook is pointing to the right destination, Sometimes you may have an error on the webhook URL...
Read more >Webhook configuration failed - Developer Community Forum
I am currently configuring the web hook to the mesenger but I don't understand how my application while configuring always says "Cannot validate...
Read more >I can't receive data (webhook) - LINE Developers Community
I am having the exact same issue. The "Verify" webhook URL works fine and I can see the request coming into my server:...
Read more >Webhook verification not working - Google Groups
I am trying to verify a webhook without success. The URL is never submitted to my server, and the validation fails. I am...
Read more >Cannot verify Line bot Webhook - Stack Overflow
First of all, what link did you put on the Line Developers website? You might have forgotten the /callback at the end.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tw0517tw oh really?! I thought the verification is a must
bottender@0.14.10
has been released, it can handle LINE webhook verify requests now!