microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.59k stars 1.53k forks source link

Webchat with DirectLine App Service Extension not rendering the SuggestedActions and activities onMembersAdded #4728

Closed saravana-sk closed 9 months ago

saravana-sk commented 1 year ago

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Browser: Chrome (latest)

Which area does this issue affect?

Suggested action

What is the public URL for the website?

No response

Please describe the bug

I configured the azure bot with App Service. While initiating the bot in web app using webchat with directline app service extension, the initial activities received from bot service in websocket is not rendering properly.

If I use directline secret instead of token, it is rendering properly.

Do you see any errors in console log?

No response

How to reproduce the issue?

  1. Create a simple bot using using nodejs, that sends some plain message onMembersAdded and some suggestedActions
  2. Initialize directLine with token in web app and trigger renderWebChat method
  3. See whether the plain text activity and suggested actions are rendering in the webchat container

What do you expect?

It should render the message and suggested actions whenever user connects with the bot.

What actually happened?

The initial message and suggested actions are not rendering while using token for DirectLine. whereas it works while using the DirectLine Secret.

Do you have any screenshots or recordings to repro the issue?

This is on using token for directline: image

This is on using secret for directline: image

Adaptive Card JSON

No response

Additional context

No response

saravana-sk commented 1 year ago

is there any update on this issue?

stevkan commented 1 year ago

@saravana-sk - Thank you for your patience. A few questions:

stevkan commented 9 months ago

Closing due to inactivity.