Botframework-webchat: Webchat stuck on "WEB_CHAT/SET_REFERENCE_GRAMMAR_ID"

Created on 7 Feb 2020  路  2Comments  路  Source: microsoft/BotFramework-WebChat

Version:

latest using: https://cdn.botframework.com/botframework-webchat/latest/webchat.js

Describe the bug

We have a webchat window on our website that can be minimized/reopened (this keeps the same token, if still valid) or closed/reopened (this ensures we retrieve a new token). Our bot should greet us when we dispatch an event to the bot. When following a specific pattern, the webchat sticks on the "WEB_CHAT/SET_REFERENCE_GRAMMAR_ID" action and our bot does not greet us with our welcome message.

Steps to reproduce

  1. Using the attached code, create an html file. - be sure to update the secret
  2. Open the file in Chrome
  3. Click on "Open Chat"
  4. Click on "Minimize Chat"
  5. Click on "Open Chat"
  6. Click on "Close Chat"
  7. Open developer console
  8. Click on "Open Chat"

Expected behavior

You will not be greeted and, in the developer console, the last action written is ">>> HTML DISPATCH action: WEB_CHAT/SET_REFERENCE_GRAMMAR_ID"

Additional context

If you move the below line of code from the "closeChat" function to the "minimizeChat" function, the bot will properly greet us.

store.dispatch({type: 'DIRECT_LINE/DISCONNECT'});

simpleNoSecret.txt

[Bug]

Bot Services Question customer-replied-to customer-reported

All 2 comments

@corinagum : Can you take a look?

@waltec888, Please take a look at our minimizable Web Chat sample. sample 06.a. This is using React.

For recomposing the UI, Web Chat only officially supports doing so via React, seen on our README.md

For further implementation questions, I recommend taking this conversation to Stack Overflow.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

compulim picture compulim  路  3Comments

GewoonMaarten picture GewoonMaarten  路  3Comments

corinagum picture corinagum  路  3Comments

naveen-vijay picture naveen-vijay  路  4Comments

joshm998 picture joshm998  路  3Comments