Description
openedon Oct 1, 2021
We have a Composer Bot running on 2.1.1 with several custom components installed for example for logging messages to our main system and other purposes.
We had Facebook Messenger connected via the Azure Channel and this worked fine, as well as in Emulator and in our custom Twilio Adapter.
Now we aimed to use the Facebook Adapter instead of the Azure Channel. Installing in Composer was easy and bot is running but none of our custom middleware components are triggerd. The OnTurnAsync methods of those components are just not executed when messages are sent or received via the Facebook Adapter.
Version
Version: 2.1.1
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0
To Reproduce
Steps to reproduce the behavior:
- Create or use a sample bot with Composer 2.1.x
- Create a custom middleware component as descendant of IMiddleWare with an an OnTurnAsync method
- Publish middleware component locally
- Install middleware component in Composer
- Install and configure Facebook Adapter in Composer connections settings (we used an ngrok tunnel for the webhook)
- Run the bot once in Composer and stop it (not sure if needed)
- Open bot in Visual Studio and open code of middleware
- Put a breakpoint on your custom OnTurnAsync method in middleware component code
- Start bot in Visual Studio
- Send messages from Emulator - breakpoint is triggered
- Send messages from Facebook - breakpoint is not triggered
Expected behavior
OnTurnAsync of each installed component should be executed similar as when messages are routed via the default route.