Closed Gilliam-avo closed 3 years ago
Hey @Gilliam-avo thanks for reporting this -- I'm sorry to hear this,
I will make a PR and release a pre-release within the next 30 mins or so that you could use if you'd be OK with trying it out! There are some other changes in the pre-release version that you'll be able to use related to some open issues but you shouldn't see this bug any more
Hey @Gilliam-avo if you'd don't mind, please try out the v0.2.2-rc.1
pre-release build of scout
Thanks, that solves our issue.
@Gilliam-avo Could you provide some of your code enabling scout to work on nestjs. I tried adding app.use(scout.expressMiddleware());
it works but often crashes the app.
Im getting below error on my local and not in my production
`
GotError [HTTPError]: Response code 404 (Not Found)
at EventEmitter.
Also tried v0.2.2-rc.1 pre-release build of scout
which was recommended.
We are using the express middleware on nestjs and it works fine except when the request is aborted. This causes span to be undefined and crashes the service. I linked the line that crashes and I can fix it by changing it to.
result = cb(() => span && span.stop(), {span, request, parent});
https://github.com/scoutapp/scout_apm_node/blob/5bc56f9af938108ecb97a6ac706fb6e9bfb49c38/lib/scout/index.ts#L608