Forum Discussion
Paul_By
Nov 02, 2021Brass Contributor
MSTeams. Bot. Adaptive Card sends repeated actions.
Hi,
There is an Adaptive Card with "Action.Submit" action. Bot handles (OnTurnAsync) the action and sends API request (to external application).
We found that sometimes the Bot calls the handler several times. I can reproduce it if I add "await Task.Delay(10000)" into "OnTurnAsync" (will be called twice).
Our API request should be once according user request. We updated the card after the request. How can we handle it or switch off repeated actions? How can we prevent repeated actions?
- ChetanSharma-msftMicrosoftPaul_By - We will also check from our end and let you know.
- Meghana-MSFTMicrosoftPaul_By - Could you please share your OnTurnAsync method code snippet with await Task.Delay(10000)?
- ChetanSharma-msftMicrosoftPaul_By - Could you please confirm if your issue has resolved or still looking for any help?