Closed polluterofminds closed 1 year ago
Node Errors
Error running plugin "ErrorPlugin": self._createParsedCallSite is not a function. Discarding Event.
Error running plugin "ErrorPlugin": self._createParsedCallSite is not a function. Discarding Event.
The error seems to be thrown in the error plugin here:
const result = await parser.parse(context, exception);
This is as a result of the client configuration not having errorParser
defined:
const config = context.client.config;
const parser = config.services.errorParser;
@polluterofminds is Exceptionless.startup() being called? That service is set inside of startup. https://github.com/exceptionless/Exceptionless.JavaScript/blob/feature/workspaces/packages/node/src/NodeExceptionlessClient.ts#L22
@niemyjski Yep it is.
await Exceptionless.startup((c) => {
c.apiKey = "TEST KEY";
// c.serverUrl = "http://localhost:5000";
c.useDebugLogger();
c.defaultTags.push("Example", "Node");
// set some default data
c.defaultData["SampleUser"] = {
id: 1,
name: "Blake",
password: "123456",
passwordResetToken: "a reset token",
myPasswordValue: "123456",
myPassword: "123456",
customValue: "Password",
value: {
Password: "123456",
},
};
});
Steps to repro coming...
Exceptionless Node Bug in Express App:
NodeJS Version: v14.15.0
NPM version: 7.10.0
cd example
cd express
example/express/app.js
npm run dev
or npm run start
This has been fixed in the 2.0 release.
Browser
React
Node
Angular