BotFramework-Emulator icon indicating copy to clipboard operation
BotFramework-Emulator copied to clipboard

Loading .transcript from disk does not render the conversation in the chat control

Open cwhitten opened this issue 5 years ago • 8 comments

Opening a transcript from File -> Open Transcripts works as intended.

Screen Shot 2020-03-25 at 8 36 31 AM

I think something has possibly gone wrong with .transcript generation. I create a fresh Composer bot and the transcript generated works, but if I load an older .transcript (non-Composer) it doesn't render in the chat control. Ping @cwhitten for an older transcript that generated this behavior.

cwhitten avatar Mar 25 '20 15:03 cwhitten

This seems to be due to an error thrown inside of Web Chat:

image

I believe the offending call to be the useDateFormatter() hook inside of the RelativeTime middleware, which eventually calls globalize.dateFormatter(...).

@compulim, @corinagum any ideas here off the top of your head?

tonyanziano avatar Mar 25 '20 16:03 tonyanziano

SandwichOrder.zip

Here's a transcript that doesn't load.

tomlm avatar Mar 25 '20 18:03 tomlm

Looking at it now.

compulim avatar Mar 25 '20 21:03 compulim

Related to https://github.com/microsoft/BotFramework-WebChat/issues/3039.

If the transcript showing any dates beyond yesterday, it will blow up. 🤯

compulim avatar Mar 26 '20 00:03 compulim

@cwhitten I've just changed my system time to a date before the timestamp of the transcript files and this results in the Bot Emulator to successfully load old Transcript files.

None of these official sample transcript files are working without this work around. https://microsoft.github.io/botframework-solutions/skills/samples/transcripts/

Would be good if this bug could be fixed as we are using transcripts files to review beta testings of our bot.

jelmuei avatar May 04 '20 12:05 jelmuei

Hi @jelmuei ,

I'm glad to hear you found a workaround.

We are still waiting for this to be fixed in Web Chat (https://github.com/microsoft/BotFramework-WebChat/issues/3039), and can't fix the issue in the Emulator until that is done.

tonyanziano avatar May 04 '20 16:05 tonyanziano

@tonyanziano

Is there a update? Essentially the whole transcript functionality is broken now.

We have a big collection of transcript files of conversations from our beta testers but we do not have a way to use them for enhancing the conversational flow of our bot.

Is there another way to read transcripts files in some form of a GUI based tool and render them so our product people can review them?

jelmuei avatar Jun 23 '20 17:06 jelmuei

Hi @jelmuei ,

The Emulator & Web Chat teams are spread pretty thin at the moment due to some other pressing tasks in our pipeline, so unfortunately I can't give you an update on when this will be fixed.

As a workaround, you can download an older version of the Emulator (I tried v4.5.2 and it worked), and the transcripts will be displayed properly in the GUI. There was a performance issue around loading transcripts present in this version, so it may take a little while for the transcript to completely render if it is large, but just be patient.

Hope this helps.

tonyanziano avatar Jun 23 '20 17:06 tonyanziano