question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working when verifying webhook URL on LINE platform

See original GitHub issue

Version of Bottender: "bottender": "^0.14.3", Steps to reproduce:

  1. start the server with any endpoint eg: const server = createServer(bot, { path: '/webhook' });
  2. press the Verify on https://developers.line.me/console after changed a new webhook URL
  3. 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"
            }
        }
    ]
}

  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 in lib/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:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

5reactions
wingliu0commented, Dec 9, 2017

@tw0517tw oh really?! I thought the verification is a must

3reactions
tw0517twcommented, Dec 14, 2017

bottender@0.14.10 has been released, it can handle LINE webhook verify requests now!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found