Closed mInzamamMalik closed 5 years ago
+1
@malikasinger1
Is this an issue pertaining to the JavaScript SDK? This looks like a general Lambda question.
The same mongodb code is working in working in express server but it is not working in aws lambda, what is the reason?
Actually .then part of the code never executes in aws Lambda
Please let me know the correct person to report only if this problem is not relevant to this repo
Hi, @malikasinger1
I don't think this is an AWS SDK specific issue. Maybe you can turn to Lambda forum to ask for help.
Clearly, as the response suggests, you have unhandled exception in your Lambda execution. You can try sam cli to deploy and manage the whole stack of your lambda function. It also offers ability to do local debugging.
I have only one function in total, which is acting as webhook of amazon lex
I am unable to create a new ticket in the forum, where is the button to create a new ticket in forum?
@malikasinger1 Have you tried 'Post New Thread'?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
I am making AWS Lex bot using lambda function and trying to connecting it to database of MongoDB Atlas using "mongoose" and database of firebase using "cloud firestore".But no data is saving to the database and even there is no error giving at cloud watch and not a single console is showing there
I have completed the whole procedure for making cluster on MongoDB Atlas and the process of cloud firestore .
I am runnning the following command to deploy lambda function on AWS Lex bot in both cases of mongodb Atlas and Cloud Firestore:
$ aws lambda update-function-code --function-name Hotel-Booking-Agent --zip-file fileb://index.zip
Below is the code for connecting mongodb atlas with lambda function
The data must be saved on database as in the code.Also that AWS Lex bot is giving a response as directed in lambda function but there is no data showing in database of MongoDB Atlas. Snap of mongodb Atlas Database
Here is the code for connecting firestore with lambda function
When i deploy the above code the bot returns the following error:
An error has occurred: Invalid Lambda Response: Received error response from Lambda: Unhandled
the same code is working fine without connecting to database and even no collection and docs are making on cloud firestore.