Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nodejs debug errors in production

Tags:

People also ask

What is an Epipe error?

EPIPE (Broken pipe): A write on a pipe, socket, or FIFO for which there is no process to read the data.


I have a nodejs script running in production

I unlikely (once in thousand times) get errors like this:

TypeError: value is out of bounds
    at checkInt (buffer.js:1009:11)
    at Buffer.writeUInt16LE (buffer.js:1067:5)
    at Object.foo.bar (/fake/path/name.js:123:1);
    at Object.foo.bar2 (/fake/path/name2.js:123:1);
    at Object.foo.bar3 (/fake/path/name3.js:123:1);

Causing the production server to crash...

Great I have a stacktrace! But I want to know what it's current data is for each call or all the data?

What are some great tools or code to use to for error logging(with it's current data) on production code?