juanjoDiaz/serverless-middleware

Issue with lambda callbacks

Closed this issue · 3 comments

We are using non-async handlers with a callback function. Not a fan of it, but it's what I've been given. Anyways, it seems the handler is only sending back event and context and not the callback so the callback keeps getting the error done is not a function. Done being our callback name.

Hi @tmitchellgcio ,

Yes, this plugin has only been implemented for async handlers.
Callback-based handlers would need to be implemented.
Unfortunately, I don't have time to work on this at the moment.

In any case, I recommend that you try to migrate to async handlers as they are cleaner and simpler.

Awesome!

Closing this then 🙂