-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to receive error message from the Bot on Timeout #1630
Comments
@ljubomirsinadinovski I'm sorry, I'm having trouble understanding your request. Could you clarify? What I understand is that you are trying to alert the bot USER that sending a message to the BOT has failed. You want this message to come from the bot. Is this correct? This is not a feature of Web Chat. We have some enhancement work items #135 related to Offline UI display, but this would not be a message from the bot. Is this similar to what you are looking for? |
Yes you understood right. I am going to write the scenario in order to clarify better:
I think that the Web Chat should include this type of action, because it is really important to make the Web Chat as user friendly as possible. Also would help developers to add custom things without contacting the directLine/back-end BTW: The reducer I call above (with action type |
Thanks for the clarification. It sounds like the features you are looking for are similar to the Offline UI issues that are already filed and in the works. The only difference is that these messages will show above the Sendbox, within the transcript as a notification, not an activity from the bot. One of the problems of making the message appear to come from the bot is that because there are connectivity issues, you are not necessarily connected to the bot for it to receive or send activities. As an example, #1521 is the issue that will display a message when connecting to the bot is slow or has errors. The front-end waits for a connection from the bot, and displays a warning or error if no data comes from the bot. The feature will not look like a message from the bot, however. One solution I can see for you is to modify our component (once the feature is released) with |
@ljubomirsinadinovski I think in this case, there are few options for now:
What do you think? |
Cheers, thank you @compulim and @corinagum! I guess I am going to wait for the mid-Feb release, that works for me. I won't play around with DIRECT_LINE/* actions as suggested, I agree. I won't take into consideration the 3rd approach because if technical debt that may arose, as well as maintenance. I am going to close this issue now, because we have come to a conclusion ^_^ |
In this scenario we have failed to send our message and I want to reply (in the chat, as it is written by the bot). I can't find any action to dispatch in order to receive a message from the bot. If I call
SEND_MESSAGE_BACK
action i end up sending more messages instead of receiving. You can reproduce this if you connect to the chat and then turn off the Internet from you PC/Browser.The text was updated successfully, but these errors were encountered: