-
Notifications
You must be signed in to change notification settings - Fork 333
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
Not working when verifying webhook URL on LINE platform #96
Comments
Hi @wingliu0, Thanks for reporting. That unhandled rejection happens because bottender will try to retrieve user info from LINE with the fake user ID from this verifying request and that would fail. We should ignore these events to fix this. You can just ignore it for now as the webhook is still set. |
Hi,
but i cant ignore that. cus it leads to the fail verification on LINE
2017年12月9日 12:23,"吳東曄 Wu, Dung-Ie" <notifications@github.com>寫道:
… Hi @wingliu0 <https://github.com/wingliu0>,
Thanks for reporting. That unhandled rejection happens because bottender
will try to retrieve user info from LINE with the fake user ID from this
verifying request and that would fail. We should ignore these events to fix
this.
You can just ignore it for now as the webhook is still set.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#96 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKUiXuDRn-2WPgWzgqLJnU3aHTSj1Mleks5s-gsngaJpZM4Q70CP>
.
|
The verification will fail, but webhook is still setup well and you will start receive events from LINE. We will work on making that verification succeed. But before the patch been released, you can still run your bot (yes, with the failed webhook verification). |
@tw0517tw , |
Hi @wingliu0 , I'm not so familiar to AWS and GAE, but I've successfully deployed a LINE bot to Heroku with verification failing version of bottender. It'll be good if you can provide more information on why it can't be done. In fact, you can just update the webhook URL, enter whatever you get from AWS or GAE or Heroku, but completely skip verifying on LINE developers site channel settings. That's why I said you can ignore the verification failure error. |
@tw0517tw |
|
Version of Bottender:
"bottender": "^0.14.3",
Steps to reproduce:
const server = createServer(bot, { path: '/webhook' });
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?
The text was updated successfully, but these errors were encountered: