Data not inserting to Dynamodb in Lambda + Nodejs

In the first API call using Nodejs data not inserting to Dynamodb using serverless. In the second call, the first call data is inserting. Third API call inserting second calls data and So on.

But serverless invoke local function working correctly.

What is the issue ?

Hi Ashwanth, can you share your code? I suppose that you’re not awaiting on Promise/async function but I might be wrong.