BotFramework-WebChat: Timed out while waiting for activity
Screenshots
Version
WebChat 4.11.0
Describe the bug
Webchat times out and shows a waring message under the browser console for the first welcome message. Due to timed out it takes some time to show the welcome message. It appears the reply to message has a wrong id or none existent ID. This happens in the latest version of webchat v4.11.0 but I believe it happens in the previous v4.10.1 without logging in the consol.
Expected behavior
WebChat should not timed out for the initial welcome message.
Code to trigger the welcome message
if ('DIRECT_LINE/CONNECT_FULFILLED'.equalsTo(action.type)) {
// When we receive DIRECT_LINE/CONNECT_FULFILLED action, we will send an event activity using WEB_CHAT/SEND_EVENT
this.directLine.postActivity({
from: { id: this.user.id, name: this.user.name },
name: 'webchat/join',
type: 'event',
value: 'token'
}).subscribe(
id => console.log(`Posted activity, assigned ID ${id}`),
error => console.log(`Error posting activity ${error}`)
);
}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 26 (4 by maintainers)
fixed by PR #3705 I verified that with above PR i no longer see the timeout for the after the initial send event activity is sent
I believe this is not just a problem which occurs while sending welcome messages, but also for proactive messages.
When I run the proactive messages sample as a bot and launch the webchat using the getting started sample, then I also get the same warnings for the proactive messages.
@stevkan Thanks for the investigation and FYI! I will add this to our list for scheduling.
@arman-g, I’m glad you were able to find a workable solution.
At @corinagum, this seems like a bug that didn’t exist prior to v4.11.0. How a Cx has setup their web chat store + bot seems to determine whether the issue presents itself or not.