serverless-offline raises warning due to callback usage #48
Closed
Description
Describe the bug
This bug is originally raised by @Strernd on gitter. When Laconia is used together with serverless-offline, it is raising a warning.
To Reproduce
Use Laconia with serverless-offline
Expected behavior
A clear and concise description of what you expected to happen.
Actual behavior
A warning message generated by serverless-offline:
Serverless: Warning: handler 'laconia-handler' returned a promise and also uses a callback! | This is problematic and might cause issues in your lambda.
Additional context
The callback is originally retained even though we support node 8 because of a problem in AWS Lambda. Seems like this problem is now fixed, see: https://stackoverflow.com/a/51988695/2464295