-
Notifications
You must be signed in to change notification settings - Fork 412
runInContextCb error using composable-middleware in node app running on newrellic V12 #2806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@karankapur999 can you provide a reproduction case. I'm not sure how composable-middleware is used in this context. |
Sure , We have been using https://www.npmjs.com/package/composable-middleware and on invoking a function having integration with above package , it breaks Note: This works fine on newrelic V10 and breaking on V12 |
👋 thank you for the report. Please provide a minimal reproducible example. Doing so will help us diagnose the issue. It should be the bare minimum code needed to trigger the issue, and easily runnable without any changes or extra code. You may use a GitHub repository to host the code if it is too much to fit into a code block (or two). |
@karankapur999 as @jsumners-nr we need a reproduction case. I cannot reproduce by doing: const express = require('express')
const composableMw = require('composable-middleware')
const app = express()
const { PORT = 3000 } = process.env
const mw = composableMw().use(function(req, res, next) {
console.log('in first')
next()
}).use(function second(req, res, next) {
console.log('in second')
next()
})
app.use(mw)
app.get('/named-route', (req, res) => {
res.send('hi')
})
app.listen(PORT, () => console.log(`Example app listening on port ${PORT}!`)) |
Closing because we cannot reproduce. If you can provide a reproducation case @karankapur999, please link it and re-open issue |
After upgrading newrelic from V10.0 ^---> V12.0^ in node js app, app started getting errors
Description
I am using composable-middleware and the app crashes with attached errors on new version
Expected Behavior
Troubleshooting or NR Diag results
Steps to Reproduce
Your Environment
Additional context
The text was updated successfully, but these errors were encountered: