Teams UpdateActivity events difference when you test in newly created teams

后端 未结 1 1342
生来不讨喜
生来不讨喜 2021-02-19 20:53

We have a Teams bot that posts messages in MS Teams. The first activity of a new conversation is always an adaptive card and once in a while, we update that with a new card. Thi

1条回答
  •  长情又很酷
    2021-02-19 21:16

    We weren't able to find logs at the exact timestamps that you provided, but did find logs for the conversation ids on those dates and see 404s with the same minute and seconds in UTC. We assume the time stamps that were provided are represented in a different timezone.

    From the logs we are seeing the following pattern:

    Bot sends PUT activity with card - 404 returned
    Bot sends PUT activity with text - 200 returned
    Bot sends PUT activity with card - 200 returned
    

    This looks like the same pattern that you shared in your original post.

    There is a scenario that's causing 404s to be returned on PUTS whenever the bot tries to update an existing card message with the exact same card after new messages have been sent to a reply chain

    These are the repo steps:

     Bot send card to reply chain (can be root message or reply message)
        Any user sends a message to the chain
        Bot attempts to update message with the exact same card
    

    Is it possible that your bot is encountering this? Is there a way to check whether the card your bot is sending in the first PUT request is the same card that is already in the original message

    0 讨论(0)
提交回复
热议问题