Skip to content
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

mount-routes 和 newrelic 包一起使用,报错 #11

Open
hailiang-wang opened this issue Mar 15, 2016 · 2 comments
Open

mount-routes 和 newrelic 包一起使用,报错 #11

hailiang-wang opened this issue Mar 15, 2016 · 2 comments

Comments

@hailiang-wang
Copy link

启动 newrelic

bin/www

  require('newrelic');

启动 mount-routes

app.js

mount(app, __dirname + '/routes', false);

启动服务

npm start

过了30秒,报错。

octopus/node_modules/mount-routes/index.js:55
    var params = _route.stack.params;
TypeError: Cannot read property 'stack' of undefined
    at _track_routes (octopus/node_modules/mount-routes/index.js:55:24)
    at _use (octopus/node_modules/mount-routes/index.js:46:3)
    at mount (octopus/node_modules/mount-routes/index.js:36:7)
    at mount (octopus/node_modules/mount-routes/index.js:30:7)
    at mount_with_folder (octopus/node_modules/mount-routes/index.js:120:3)
    at Object.<anonymous> (/Users//glory/ai/octopus/app.js:107:1)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.cls_wrapMethod [as _load] (/ai/octopus/node_modules/newrelic/lib/shimmer
.js:235:38)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/glory/ai/octopus/bin/www:24:11)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)

@i5ting 给看看, newrelic 是准备今天新添加的,之前没有这个问题。

@i5ting
Copy link
Member

i5ting commented Mar 17, 2016

好的,收到

@hailiang-wang
Copy link
Author

这个问题现在还是使用原始办法解决了,写了一个routes进行定义了所有路径。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants