Closed
Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
Package + Version
-
@sentry/browser
-
@sentry/node
-
raven-js
-
raven-node
(raven for node) - other:
@sentry/integrations
Version:
5.29.2
Description
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.
Metadata
Metadata
Assignees
Labels
No labels