Closed xakpc closed 4 years ago
@stevkan, please attempt to repro.
@xakpc, I'm trying to repro your issue, but I'm running into a separate issue. How are you loading the HostingEnvironment
class into the project? BotFramework v4 is built on .NET Core, but the System.Web.Hosting
package is built for .NET Framework.
@xakpc Can you please answer @stevkan, so that he can get a repo in place? If we don't hear back in the next day or two, we'll close this due to inactivity.
@stevkan I use ASP.NET Web API app on .net framework 4.7.2 as my backend service. But that actually doesn't matter. I revisited the problem and build a small project to reproduce it based on ASP.NET Core Web API
@xakpc, thank you for your patience. I've continued to try to repro your issue using the web chat index.html file you provided as well as the "BotFramework.Reproduce" project files. The index.html works well enough, however I'm struggling some little bit with the project. For some reason I have yet to figure out, I can't get the bot to recognize any activity is being passed to it.
I'll continue to dig into this and, hopefully, have something more concrete to report back to you before too long.
@stevkan This is related to #3039 . That issue might provide some more context for helping you repro the issue.
@xakpc, Is this still an issue for you?
If it is, is this reproducible using the echo bot, or similar? The files you sent don't appear to be a typical bot construction. As it is, I can't test or reproduce using what you provided.
Also, as mentioned above in the linked issue, there is a known bug in dateFormatter that could be tied to the error you are receiving. Can you verify the language format that is being used and that you aren't suffering from the same problem as detailed there?
Closing due to the lack of response from customer since customer's last activity. If the issue persists, please feel free to re-open.
@stevkan Not sure if this helps but I can't successfully load transcript files in the bot emulator older than 2 days. A work around for me was to change the system time of my windows machine to a date before the timestamp of the conversation and to restart the bot emulator.
You can reproduce it with one of the official transcript files which will not load (white screen of the webchat) in the latest bot emulator. https://microsoft.github.io/botframework-solutions/skills/samples/transcripts/
Version
I using CDN JavaScript version of webchat (see Additional context for code)
<script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"></script>
versions
Describe the bug
I use
client.Conversations.SendConversationHistoryAsync(activity.Conversation.Id, transcript, ct)
to restore 6 last messages in Conversation after(activity.Name == "webchat/join")
triggered. Everything worked fine until recently when a new issue was discovered:if message timestamp older than 2 days
I recieve that error in browser after SendConversationHistoryAsync call on backend
otherwise
everything works fine
I presume it's somehow connected to date format of older messages
Steps to reproduce
Construct transcript object
var date = DateTime.Now.AddDays(-2);
to reproduce the problemExpected behavior
I expect older messages with localized timestamps shown
Additional context
Web chat function
[Bug]