I gotta say, I’m having immense problems with Lambda promise/callbacks vs running node locally. Wondering if anyone else has had the weeks of headaches we’ve run into.
Running Node 8.10 with Sequelize + RDS Postgres. Locally I’ve got serverless-webpack and serverless-offline working beautifully, everything is great, no issues.
In production it’s just one multi-hour nighmarish debugging session after another. External API calls just never return, sequelize DB calls failing to return, etc. I’m getting consistent timeouts on all sorts of callbacks, tried in every form: callback hell, wrapping in Promises, async/await. Every single one of them fails for no reason, just times out the lambda session.
What is the deal with AWS Lambda stack? Is anyone else running into these issues? It’s a complete nightmare and I really wish I could get any of this to mimic how it runs for me locally.