You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, we do npm install to install dependencies, then we just add
var appmetrics = require('appmetrics');
to application, and run the application, it runs good:
[root@joycevm1 keystoneForjoyce]# node keystone.js
[Thu Nov 14 19:02:45 2019] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 5.1.1.201911141856 (Agent Core 4.0.5)
------------------------------------------------
Applying update 0.0.1-admins...
------------------------------------------------
keystone: Successfully applied update 0.0.1-admins.
Successfully created:
* 1 User Model
------------------------------------------------
Successfully applied 1 update.
------------------------------------------------
------------------------------------------------
KeystoneJS Started:
keystone is ready on http://0.0.0.0:3001
------------------------------------------------
GET /admin 404 6.831 ms
GET / 200 950.819 ms
GET /blog 200 228.102 ms
GET / 304 120.690 ms
GET /keystone/signin 200 11.809 ms
GET / 304 302.079 ms
......
Then, we add such a line after the require('appmetrics') line:
appmetrics.enable('trace');
then restart the application, it crash at once:
[root@joycevm1 keystoneForjoyce]# node keystone.js
[Thu Nov 14 19:03:59 2019] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 5.1.1.201911141856 (Agent Core 4.0.5)
/root/Node/App/keystone/keystoneForjoyce/node_modules/finalhandler/node_modules/statuses/index.js:67
statuses[message.toLowerCase()] = status
^
TypeError: message.toLowerCase is not a function
at forEachCode (/root/Node/App/keystone/keystoneForjoyce/node_modules/finalhandler/node_modules/statuses/index.js:67:22)
at Array.forEach (<anonymous>)
at populateStatusesMap (/root/Node/App/keystone/keystoneForjoyce/node_modules/finalhandler/node_modules/statuses/index.js:60:22)
at Object.<anonymous> (/root/Node/App/keystone/keystoneForjoyce/node_modules/finalhandler/node_modules/statuses/index.js:25:16)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
The text was updated successfully, but these errors were encountered:
keystoneForjoyce.zip
Firstly, we do
npm install
to install dependencies, then we just addto application, and run the application, it runs good:
Then, we add such a line after the
require('appmetrics')
line:then restart the application, it crash at once:
The text was updated successfully, but these errors were encountered: