Personal web pages
sdolard / node-crashreporter Goto Github PK
View Code? Open in Web Editor NEWDump node context into a file on process crash, send it by mail
Dump node context into a file on process crash, send it by mail
tedlt
Error: EACCES, permission denied '/usr/lib/node_modules/netasqcomm/bin/crash'
at Object.fs.mkdirSync (fs.js:642:18)
at Function.sync (/usr/lib/node_modules/netasqcomm/node_modules/mkdirp/index.js:55:12)
at CrashReporter.testOutdir (/usr/lib/node_modules/netasqcomm/node_modules/crashreporter/lib/crashreporter.js:140:13)
at CrashReporter.configure (/usr/lib/node_modules/netasqcomm/node_modules/crashreporter/lib/crashreporter.js:27:8)
at Object.exports.configure (/usr/lib/node_modules/netasqcomm/node_modules/crashreporter/lib/crashreporter.js:221:25)
at Object. (/usr/lib/node_modules/netasqcomm/lib/nncli-app.js:11:42)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Hi! Great job!
I don't wan't to send emails when nodejs crashes. It would be great if the email feature is added as an optional transport so that I don't have downloaded this deps
Please see this forked repo chbohm/node-crashreporter just to see the idea.
Best,
Christian
Hello,
Is there a way we could use Amazon SNS instead of Gmail for mailing service?
I tried to setup email on crash report and got this:
/Users/huytran/training/bryony/crash-report/node_modules/nodemailer/lib/nodemailer.js:241
this.mailcomposer.setMessageOption(mailOptions);
^
TypeError: this.mailcomposer.setMessageOption is not a function
at Nodemailer.setGeneralOptions (/Users/huytran/training/bryony/crash-report/node_modules/nodemailer/lib/nodemailer.js:241:23)
at Nodemailer.generateMailObject (/Users/huytran/training/bryony/crash-report/node_modules/nodemailer/lib/nodemailer.js:196:10)
at Nodemailer.sendMail (/Users/huytran/training/bryony/crash-report/node_modules/nodemailer/lib/nodemailer.js:184:10)
at /Users/huytran/training/bryony/crash-report/node_modules/nodemailer/lib/nodemailer.js:69:20
at Nodemailer.validateSettings (/Users/huytran/training/bryony/crash-report/node_modules/nodemailer/lib/nodemailer.js:173:5)
at sendMail (/Users/huytran/training/bryony/crash-report/node_modules/nodemailer/lib/nodemailer.js:63:12)
at Transport.transport.sendMail (/Users/huytran/trainiHuys-MacBook-Pro-2:crash-report
I fixed it by change the version of node-mailer from 0.3.x to 0.5.x
You can use my forked version to avoid this https://github.com/tranquochuy/node-crashreporter/tarball/master
I have integrated crashreporter in my project. When any crash happen in my running project it is generating new file, but I am not able receive any email.
Here Is my configuration Which i have done in my project
crashreporter.configure({
exitOnCrash: false,
maxCrashFile: 5,
mailEnabled: true,
mailTransportName: 'SMTP',
mailTransportConfig: {
service: 'Mailgun',
auth: {
user: 'abc',
pass: 'xyz'
}
},
mailSubject: 'Code crash in ABC',
mailFrom: 'abc [email protected]',
mailTo: '[email protected]'
}}
Looks like you have error in you package.json for latest release/tag 1.0.0
"main": "index.js"
You already fixed it in master, but did not make new release/tag yet. Could you do it please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.