-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Description
I get this error after upgrading the Nodejs version from v6.9.2 to v7.0.1
TypeError: Error.captureStackTrace is not a function
at ClientError.Error [as constructor] (/Users/kde/Workspace/icservice/node_modules/neo4j/lib-new/errors.coffee:9:15)
at new ClientError (/Users/kde/Workspace/icservice/node_modules/neo4j/lib-new/errors.js:81:48)
at Function.__dirname.Error.Error._fromObject (/Users/kde/Workspace/icservice/node_modules/neo4j/lib-new/errors.coffee:95:13)
at /Users/kde/Workspace/icservice/node_modules/neo4j/lib-new/GraphDatabase.coffee:332:29
at Request._callback (/Users/kde/Workspace/icservice/node_modules/neo4j/lib-new/GraphDatabase.coffee:100:24)
at Request.self.callback (/Users/kde/Workspace/icservice/node_modules/request/request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/Users/kde/Workspace/icservice/node_modules/request/request.js:1081:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (/Users/kde/Workspace/icservice/node_modules/request/request.js:1001:12)
at IncomingMessage.g (events.js:292:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
It might be the V8 issue (bumped up version in Nodejs 7 to v8 5.4)
this.Error = (function(_super) {
__extends(Error, _super);
function Error(message, neo4j) {
this.message = message != null ? message : 'Unknown error';
this.neo4j = neo4j != null ? neo4j : {};
this.name = 'neo4j.' + this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
...
I guess we should call the global one global.Error.captureStackTrace(this, this.constructor);
TimothyMischief, tiaozi0912, pito-svk, TyGuy, kand and 5 morepawarvijaypurplecones
Metadata
Metadata
Assignees
Labels
No labels