-
Notifications
You must be signed in to change notification settings - Fork 249
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
The reply of the qna bot is sometimes null/blank (intermittent) #759
Comments
Hi, I've just finished troubleshooting and noticed that if the Lambda hook process exceeds 30 seconds, it returns a blank reply. Can anyone help with this issue? |
@dangollayan If I'm not mistaken, LexV2 has a 30 second timeout on RecognizeText fulfillment. If the QnABot fulfillment processing exceeds this time (including lambda hook) then LexV2 will timeout the request. I believe there are some default messages that can be configured for this case in LexV2. Also, depending on your lexv2 client, the calls to LexV2 might be able to send in a streaming based request although I'm not sure how QnABot would handle this. I think the default for a timeout can be longer using streaming. I've never experimented with streaming for example from the LexWebUi AWS sample to QnABot but perhaps this would give you a chance to stream some messages while the processing is taking place on the back end lambda hook. |
thanks for your thoughts @bobpskier! |
Hi @dangollayan |
hi @fhoueto-amz, can you elaborate how can we configure the time out to QNA bot setup? |
I would start here for the Lex API reference docs: https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-updates. Seems like you can specify a timeout length of up to 15 minutes (900 seconds) |
Doesn't work with the solution |
Hi @dangollayan , To answer your questions, I'd suggest to try post-processing lambda hook and examine the input event to the lambda. In that input event, you can modify sessionState as needed to set timeToLive. Before implementing this solution, you will want to evaluate if there is negative impact of this change in terms of concurrency and lambda 15 min timeout . For more information on post-processing lambda hooks, please see Lambda Hooks Best, |
Describe the bug
![image](https://private-user-images.githubusercontent.com/113376990/357155928-b7559ebd-0af2-4ceb-862b-d2c2211a7777.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNjAyNjYsIm5iZiI6MTcyNjE1OTk2NiwicGF0aCI6Ii8xMTMzNzY5OTAvMzU3MTU1OTI4LWI3NTU5ZWJkLTBhZjItNGNlYi04NjJiLWQyYzIyMTFhNzc3Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQxNjUyNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YjFiN2MxYWYwN2JhNjA3MDQ2MmZlMGQ1YzYwM2VlYzQyYTFlNTc1N2IyMGY1YTRmZGQ4ZjgwZTdiYjcxMTFlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.UErvEHTblFGeZG8zB6527mGOaCeuzXjryIfmx4Zfkbs)
The qna bot sometimes replies a blank reply/ null when using lambda hook.
To Reproduce
![image](https://private-user-images.githubusercontent.com/113376990/357157549-5358b90e-883a-40d9-8f98-32f784dc89a0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNjAyNjYsIm5iZiI6MTcyNjE1OTk2NiwicGF0aCI6Ii8xMTMzNzY5OTAvMzU3MTU3NTQ5LTUzNThiOTBlLTg4M2EtNDBkOS04Zjk4LTMyZjc4NGRjODlhMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQxNjUyNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMzlhOTc4MTE4ZWE5ZDc2M2ZhZWFlMWJlMjlmNGIwMWU0MDJkNmI4MmRiNjdlYmI5YWUzZWQ3MzdlNGQwNjBmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.IgpsLvm6zr4ZDLaWqZ59RZRezYn9_v3autINvlK6riU)
Create an agent with knowledgebase/action group as a lambda hook then attached it to no hits intent
Expected behavior
The bot should be able to reply with what the lambdah hook returned
Please complete the following information about the solution:
Screenshots
![image](https://private-user-images.githubusercontent.com/113376990/357157019-1c0c92db-2450-47f7-9af7-4378f06d3456.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNjAyNjYsIm5iZiI6MTcyNjE1OTk2NiwicGF0aCI6Ii8xMTMzNzY5OTAvMzU3MTU3MDE5LTFjMGM5MmRiLTI0NTAtNDdmNy05YWY3LTQzNzhmMDZkMzQ1Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQxNjUyNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZjI3MjUwNTFiZmRlMmNmZDM2NTg2OWNmNDEwMGQyZmY3MmY5MGMwZWI0ZDE1MDRkYmM1NjVhYTdhZDhjZDZhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.rZl4p7BBP2Ty03ETMQVP--ngBivfVl_Q-CFAPQU-doc)
no errors in fulfillment lambda as well
The text was updated successfully, but these errors were encountered: