arabold/serverless-sentry-plugin

Incompatible with serverless-http

esetnik opened this issue · 2 comments

This plugin appears to be incompatible with serverless-http.

Example:

module.exports.api = RavenLambdaWrapper.handler(Raven, serverless(app));

it works fine when running the code locally using serverless-offline

but when running on lambda I get Task timed out after 6.01 seconds in the cloudwatch logs and a response that looks like.

{
    "message": "Internal server error"
}

I'm sorry to hear that. Unfortunately I'm not familiar with serverless-http so I'm not of much help here. This could be an issue with context.callbackWaitsForEmptyEventLoop that will be fixed in an upcoming release soon. If you have additional details or a simple sample project that demonstrates the issue, that would be helpful.

FYI, I just tried to integrate serverless-sentry with serverless-http in the same method described, and it hasn't encountered this error.