-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Still getting error: 'turn' does not match memory scopes:[] (Parameter 'key') #3361
Comments
@marcscheuner-bfh, I am able to get active learning to work after updating the packages to 4.14.0. Can you attach a screenshot of the exception you are getting and also what channel are you testing the bot on? Also, did active learning work as expected before updating to 4.14.0? |
Here's the screenshot - I'm testing my bot in the Bot Emulator, as well as in MS Teams - error happens in both places: The conversation is in German, but the point is: I'm asking a question "MWST" which isn't specific enough, and the bot responds with "Did you mean?" and shows options - and after that, I get the error..... I believe Active Learning did work before - and still does (at least the |
@marcscheuner-bfh, do you get any additional error on Visual Studio? Also, can you try debugging using ngrok by setting breakpoints in Visual Studio? |
The error happens in (Microsoft-generated) public class QnAMakerDialog : WaterfallDialog, in method OnPreBubbleEventAsync on line 456:
And this is the full exception message I get: Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter: Error: [OnTurnError] unhandled error : 'turn' does not match memory scopes:[] (Parameter 'key') System.ArgumentOutOfRangeException: 'turn' does not match memory scopes:[] (Parameter 'key') |
Downgrading the Bot Framework to v4.12.3 fixed the issue - in this version, I do NOT get this error - in any newer version, the error appears. |
@marcscheuner-bfh Can you check to see if the sample code you have includes the fix that was made here: #3347 as this was supposed to correct the issue until a fix can be made in the SDK. Based on what I'm seeing the SDK has not yet been corrected for this issue, so the workaround is in #3374. |
@LeeParrishMSFT sorry - I'm not using the samples - I'm using the code that got generated after creating and publishing a QnAMaker knowledge base. I have taken that as a starting point and have been adding features and capabilities to it. Not sure if I'd find those fixes you mention in that code base as well .... |
Yes, please add code changes mentioned in #3347 along with upgrading the package to 4.14.1 version |
@LeeParrishMSFT @sahithikkss OK thanks for the hint - with this extra line in startup.cs, I was able to upgrade to v4.14.1 and my code base works without this error - thanks ! |
Sample information
Sample type: \samples
Sample language: dotnetcore
Sample name: 49.qnamaker-all-features
Describe the bug
If update to BotBuilder 4.14.0, active learning does not work anymore
To Reproduce
update bot builder packages to 4.14.0
trigger qna active learning
bot get exception
'turn' does not match memory scopes:[] (Parameter 'key')
According to previous bug #3194, this should have been fixed - but I cannot concur - I still get that very same error with Bot Framework v4.14
The text was updated successfully, but these errors were encountered: