When using Koa as your HTTP server, you get an unexpected typing error stating that a Koa request is not assignable to ExpressRequest
function logError(ctx: ParameterizedContext, err?: any): void {
Sentry.withScope(function (scope) {
scope.addEventProcessor(function (event) {
return Sentry.Handlers.parseRequest(event, ctx.request);
});
Sentry.captureException(err);
});
}
Argument of type 'Request' is not assignable to parameter of type 'ExpressRequest'.
Type 'Request' is missing the following properties from type 'ExpressRequest': aborted, httpVersion, httpVersionMajor, httpVersionMinor, and 40 more.
Package + Version
@sentry/browser@sentry/noderaven-jsraven-node(raven for node)@sentry/integrationsVersion:
Description
When using Koa as your HTTP server, you get an unexpected typing error stating that a Koa request is not assignable to ExpressRequest