2 Answers
- Newest
- Most votes
- Most comments
0
Hello.
When you issue a test event, the Lambda function's "event" will contain the json passed in the test event.
In other words, in this case, the json "{ "Username" : "Priscilla"}" is passed as is to the event, so "queryStringParameters" is None.
The cause of the error is that "queryStringParameters" is not included in the test event json.
So, I think it will work if you change the json used in the test event as follows.
{
"queryStringParameters":
{
"Username" : "Priscilla"
}
}
Relevant content
- asked 2 years ago
- asked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
Could you accept the answer as valid to reward those who helped you and continue to support others in need?