Closed plotic closed 4 years ago
Hey @plotic Apologies for late reply, I was not able to reproduce this locally, can you make sure you are using the guidelines mentioned here to ship the latest version of the SDK.
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug I'm trying to build a chatbot infrastructure by using AWS API Gateway and AWS Lex. I have attached for API and Lex bot a separate lambda function. When invoking the Lex with lexruntime.postText i trigger the Lex lambda function. In this lambda function i want to set some sessionAttributes and return the response with DialogAction's type "Delegate". The bug is that sessionAttributes are not being returned. But if DialogAction's type is "Close" the sessionAttributes is getting returned.
Is the issue in the browser/Node.js? Node.js
If on Node.js, are you running this on AWS Lambda? YES, AWS almbda
Details of the browser/Node.js version v12.12.0
SDK version number 2.631.0
npm list aws-sdk
from your root directoryconsole.log(AWS.VERSION)
in your code whereAWS = require("aws-sdk");
To Reproduce (observed behavior) Lambda 1 (AWS API Gateway)
Lambda 2
lexruntime.postText returns an empty sessionAttributes
Expected behavior lexruntime.postText should return sessionAttributes with data set in Lex's Lambda
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.