Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
fix(channel-messenger): fix initialization #3011
As hinted in the Forum, the
The reason is because router.getPublicPath() awaits AppLifecycle.waitFor(AppLifecycleEvents.HTTP_SERVER_READY).
The fix is to call
I'm just wondering if any of the methods in the onBotMount may cause Messenger to try to contact Botpress via the webhook, because this could be another issue.
The cycle is onServerStarted -> Mount Bots -> OnServerReady
If FB calls the webhook in the mount phase, this may not work. I think the best fix would be to leave
What do you think ?
I'm wondering why we didn't hear about this earlier, the getPublicPath was changed a year ago, and messenger was not changed since
I thought some recent change of lifecycle happened, otherwise it is really strange.
The case I tested, was without Facebook knowing about Botpress at all, I created a Facebook page, then used its configuration in Botpress .
When I tested, I see something different, it seems that it is