botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

In a Slack bot framework's bot, buttons are being replaced or deleted with the text 'null (edited)' when clicked. How can I fix this issue?

Open kevaldekivadiya2415 opened this issue 3 years ago • 9 comments

I have created a bot using the Microsoft Bot Framework and integrated it with a Slack channel. When I send buttons, such as "yes" or "no" buttons, through the bot in Slack, the button title and button are deleted and replaced with "null (edited)" after they are clicked.

Button title and button should not be deleted or replaced by "null (edited) text". How can i fix the issues? Can you please provide a solution for this issue? Thank you.

kevaldekivadiya2415 avatar Jan 16 '23 09:01 kevaldekivadiya2415

I start getting the same issue appearing for the Slack channel today on all environments. I didn't find a workaround yet - but for us, it's impacting user experience - so will continue digging for a workaround by myself. For now, it's not clear if it is an Azure Bot service or a Slack change. We didn't have any code updates recently. Any feedback on how it can be fixed is highly appreciated. Thank you!

spzm avatar Jan 16 '23 13:01 spzm

Hi @kevaldekivadiya2415 How are you creating and sending the buttons? Are you able to share a sanitized copy of the outgoing activity? A bit of sample code might be helpful.

dmvtech avatar Jan 17 '23 00:01 dmvtech

How are you creating and sending the buttons? Are you able to share a sanitized copy of the outgoing activity? A bit of sample code might be helpful.

Ah, sorry. Nevermind. I was able to reproduce it. Investigating further.

dmvtech avatar Jan 17 '23 00:01 dmvtech

I do have the same issue on production apps, impacting customers. The same bots are also connected to Teams channel, which do not have the issue, it seems to be only on Slack.

I can also add that I do not use the SDK, we directly use the REST API.

Good luck investigating the issue !

yoagauthier avatar Jan 17 '23 11:01 yoagauthier

Hi @dmvtech, any news on the topic or estimated time of resolution ?

Or since it's impacting customers in production, maybe could you suggest a workaround that we could implement to re-establish previous button behavior ?

yoagauthier avatar Jan 20 '23 10:01 yoagauthier

Hi @dmvtech we are also having the same problem in our production environment.

Do you have any updates on the issue or have a workaround for it?

tygore587 avatar Jan 31 '23 12:01 tygore587

@dmvtech - do we have an update please; we too have production apps being impacted with this and clients checking regularly on us. Also would you be kind enough to share the ETA for this?

Replication steps would be as simple as (a) Running sample- https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/csharp_dotnetcore/06.using-cards (b) Exposing the ngrok to bot service (c) Creating slack channel with the scopes as per the documentation.

@kevaldekivadiya2415 , @tygore587 , @yoagauthier , @spzm - hi guys, has anyone tried contacting Slack with this issue please, if so can you tag me too. Have you tried using the community adapter or botkit ?

saikumaru avatar Feb 02 '23 06:02 saikumaru

We had the same issue and created a support request with MS. A hotfix to the Bot Framework was now deployed and the problem seems to be resolved.. I can no longer replicate the problem..

rbormann avatar Feb 06 '23 11:02 rbormann

Same for us, we talked with support on Azure Bot Services and everything seems to be resolved, no more issue on Slack.

yoagauthier avatar Feb 07 '23 10:02 yoagauthier