You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running: exports.handler = (event, context) => { return serverlessExpress.proxy(server, event, context) }
My server exits without timeout, but I don't go through my whole event loop, i.e, I don't resolve all promises.
When I run: exports.handler = (event, context) => { return serverlessExpress.proxy(server, event, context, 'PROMISE').promise }
I execute all my promises, I see all outputs in the right places and go through all operations. But my function times out.
I also created an entirely fresh project with the files from example. Not waiting for function myFunc () { console.log('hey') } setTimeout(myFunc, 3000) when I run without 'PROMISE'
If I run with 'PROMISE' it times out even if I set 30 seconds when running the local script with run-local-lambda.
Hi,
When running:
exports.handler = (event, context) => { return serverlessExpress.proxy(server, event, context) }
My server exits without timeout, but I don't go through my whole event loop, i.e, I don't resolve all promises.
When I run:
exports.handler = (event, context) => { return serverlessExpress.proxy(server, event, context, 'PROMISE').promise }
I execute all my promises, I see all outputs in the right places and go through all operations. But my function times out.
What am I doing wrong?
What parts of the code do you want to see?
index.js
main.js
I am running node v12.16.1
I launch my test like this:
"scripts": { "test": "run-local-lambda --file index.js --event event.json --timeout 3" },
Thankful for any help, I am so stuck and can't find any help on the internet
The text was updated successfully, but these errors were encountered: