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

WebChat responses goes out of sync and the ticker stops

Open rohanar opened this issue 10 years ago • 16 comments

Playing with a simple bot on WebChat shows that the responses go out of sync with the requests. Network activities in chrome developer tools show that the "ticker" has stopped when this happens.

How to replicate:

My bot is here: https://webchat.botframework.com/embed/calmacbotv3?s=RJq9xTtB2OY.cwA.yS0.bHstdR5W1qKfnEtlMr2BJ3qhyRYrnjhqxZyE1tWrfpk

Try the commands/utterances "allroutes" and "allports" alternatively. After few attempts, you will miss to receive a response. Thereafter you get the previous response for the new command/utterance. When this happens the ticker has stopped.

rohanar avatar Aug 10 '16 14:08 rohanar

Hi @rohanar , it seemed to respond to me without failing.

danmarshall avatar Aug 11 '16 01:08 danmarshall

Thanks @danmarshall for taking a look. It definitely has an issue though. As I mentioned in my first post, you need to try it about 7-10 times to see the issue. Using the commands/utterances "allroutes" and "allports" alternatively helps you identify if you get the correct response...

rohanar avatar Aug 11 '16 13:08 rohanar

I see, the polling activity ceases, then webchat no longer shows bot's response.

danmarshall avatar Aug 11 '16 18:08 danmarshall

Any chance someone fixing this!

rohanar avatar Sep 05 '16 10:09 rohanar

Hi @rohanar, sorry for the delay. We do have this fixed and should have the fix available in a few days. Thanks for reporting the issue.

dandriscoll avatar Sep 05 '16 21:09 dandriscoll

Hi @rohanar can you verify that this issue is resolved for you?

danmarshall avatar Sep 13 '16 20:09 danmarshall

Much better - Thanks. However occasionally, it delays sending a response until you issue a subsequent/next command/utterance. When this happens it returns both the response to the new and the previous commands together. So the responses won't go missing now. This issue leads to an error when your utterance is a reply to a prompt. This happens arbitrarily and I can't give you exact sequence of commands/utterances to reproduce it. I was playing with the following utterances/commands in random order. You will notice at some point that you won't get a response, and your next command with bring back both responses...

allroutes allports route 5 monday timetable route 7 tuesday timetable

rohanar avatar Sep 14 '16 09:09 rohanar

Yes, it looks like this is still a problem under somewhat more specific conditions. Thanks for paying close attention!

dandriscoll avatar Sep 17 '16 22:09 dandriscoll

Hi @rohanar, I have this fixed locally and will have it deployed sometime next week. Thanks again for reporting it.

dandriscoll avatar Sep 18 '16 01:09 dandriscoll

Hi, I had similar issues on Slack in addition to webchat. Is your fix only for webchat?

snbuchholz avatar Sep 20 '16 11:09 snbuchholz

@snbuchholz , this change is only for webchat. Can you send your bot ID?

dandriscoll avatar Sep 21 '16 15:09 dandriscoll

Hi @dandriscoll,

I am still facing this issue in webchat. Is this fixed ?

Thanks

pandubalraj avatar Sep 27 '16 06:09 pandubalraj

@dandriscoll ID is 943d58f3-2f89-477e-8f1a-41e9b3281d7b

snbuchholz avatar Sep 27 '16 08:09 snbuchholz

Hi @pandubalraj, @rohanar, and @snbuchholz, the issue was fixed earlier today.

Please force-refresh the web chat control and see if the problem recurs.

dandriscoll avatar Sep 28 '16 03:09 dandriscoll

Hi @dandriscoll, I am not getting the issue right now. Thank you very much.

pandubalraj avatar Sep 29 '16 03:09 pandubalraj

Hi @dandriscoll Just tried it today (I was on holiday last week), and it looks ok now. Thanks for fixing the issue(s).

rohanar avatar Oct 03 '16 08:10 rohanar