-
Notifications
You must be signed in to change notification settings - Fork 367
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
Error message is not shown when the bot fails to start #4826
Comments
Hi @peterbozso, I'm going to start at repro'ing this issue. In the mean time, could you provide the error that is generated so I can review and compare? |
@peterbozso, the .zip file you attached appears to be empty. Could you please repost the file? |
@stevkan I fixed the zip and added the text of the error message in the Additional context section. I also tried with 1.2.1 and this bug is still present. Please also note that sometimes you have to navigate from and back to the Design page multiple times to make the error popup show up. |
I was able to repro the issue getting the same generated error as reported. However, in my testing, despite a 400 error code being returned in Emulator when connecting or sending an activity, the web app/bot doesn't necessarily die with the first, second, third, etc., error. In one instance, it took as long as 8 mins. All that being said, the Composer error only generates once the web app fails. I can confirm that it only displays after changing views and the UI updates rather than displaying as the error occurs. @cwhitten, who would be the best person to assign this bug to? |
@cwhitten, please assign some dev to work on it? |
@luhan2017 can you look into this and route appropriately? |
@peterbozso We can separate this issue into two parts:
|
@luhan2017 I've just tried with a fresh install of 1.2.1, but unfortunately the error message display behavior is still the same. Should I try with a nightly version instead? In which commit was this issue fixed exactly? Regarding the looping itself, I agree, that's a separate thing from this one and should be tracked separately. I am sorry for not creating another issue for that. |
@peterbozso it is not in 1.2.1 yet, you can try the nightly build instead, we will release that in 1.3. @feich-ms is help debugging on the object reference to null issue, will update this thread later. |
After deep investigation, we found there is a minor bug in composer SDK runtime that caused the loop detection failed when loading loop dialogs. The short term fix in composer side is one line code change here #5077. The long term fix should be in SDK side. I created an issue in SDK side microsoft/botbuilder-dotnet#5021 to track this. @peterbozso sorry for the late response. Before this is fixed in our side, you can take below work-around stpes:
Thanks, |
This is great! Thank you @luhan2017 and @feich-ms for your prompt responses and quick help! It is very much appreciated. |
Describe the bug
I am testing what happens when you create a bot containing an infinite loop of dialogs calling each other. (See attachment below in the Additional context section.) My testing is successful: the bot fails to start (even though not with the friendliest of error messages, but that's another, less important topic). But I am facing an issue while doing this: the Composer is not able to display the error message the runtime produces on failure. Nothing indicates that the bot failed to start (apart from the 400 error code I get in the Emulator when I try to chat with the bot), everything looks like the bot started just fine. I am only able to make the error popup visible by navigating to another page of the Composer (Settings, Home, etc.) then navigating back to the Design page. (See gif below in the Screenshots section.) But even then, the popup shows up quite randomly, I can't really connect it's behavior to any concrete action I take. I don't know if this has to do with the bot configuration I am trying to test (hence the exported zip file below to fully reproduce the issue) or this is the current behavior in 1.2 for any error coming from the runtime on startup failure.
Version
1.2.1
Browser
OS
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The error popup should appear as soon as the bot failed to start and the Composer should not offer to test the bot in the Emulator. Just like it was working in version 1.1.1.
Screenshots
Additional context
Bot
LoopProtectBot_export.zip
Error message
The text was updated successfully, but these errors were encountered: