serverless-plugin-offline-dynamodb-stream icon indicating copy to clipboard operation
serverless-plugin-offline-dynamodb-stream copied to clipboard

It is only triggering first time

Open mymail4blogs opened this issue 6 years ago • 3 comments

After that the lambda is not getting invoked in the update and insert

mymail4blogs avatar Mar 12 '19 06:03 mymail4blogs

hey @mymail4blogs - i just had this same symptom.

TL;DR: is your handler async? if not, try making it so.

Digging into the code, in src/executeFunctions ~L33 it is checking i the response is a promise. It doesn't run the callback its not a promise.

sdebaun avatar Mar 15 '19 19:03 sdebaun

@sdebaun I'm current busy with few other things, PR is welcome.

emmkong avatar Apr 29 '19 14:04 emmkong

I use async in my tests, but I have similar issue. Could you provide me any ideas how to fix this?

kalitamih avatar Sep 03 '19 22:09 kalitamih