Serverless function working only once

I have a Serverless GraphQL API, which works locally.

It also works after deploying — but only once.
The second request always return null after few ms as shown:

I doesn’t seem like any of my code are executed the second time?

Have anyone tried something simular?

I’ve built a serverless graphql API and it’s working fine. If it’s only working correctly once then it sounds like you’ve got stuff happening outside the handler method that isn’t executing on subsequent invocations.

1 Like

Yep, sounds like “classic” scope leakage.