Skip to content

Instantly share code, notes, and snippets.

@nemo
Created April 22, 2015 07:22
Show Gist options
  • Save nemo/538a446f328f9e42f38d to your computer and use it in GitHub Desktop.
Save nemo/538a446f328f9e42f38d to your computer and use it in GitHub Desktop.
Rollbar Crash
break in src/managers/LogManager.js:53
  51 
  52 
  53     debugger;
  54     rollbar.handleError(err, res);
  55     if (res) {
debug> repl
Press Ctrl + C to leave debug repl
> err
{ handle: 11,
  type: 'error',
  className: 'Error',
  constructorFunction: { ref: 12 },
  protoObject: { ref: 13 },
  prototypeObject: { ref: 3 },
  properties: 
   [ { name: 'stack',
       attributes: 2,
       propertyType: 3,
       ref: 3 },
     { name: 'arguments',
       attributes: 2,
       propertyType: 1,
       ref: 3 },
     { name: 'type',
       attributes: 2,
       propertyType: 1,
       ref: 3 },
     { name: 'message',
       attributes: 2,
       propertyType: 1,
       ref: 6 },
     { name: 'status',
       propertyType: 1,
       ref: 14 } ],
  text: 'Error: [object Object]' }
> res
{ domain: null,
  _events: 
   { finish: [ [Function], [Function] ],
     end: [Function] },
  _maxListeners: 10,
  output: [],
  outputEncodings: [],
  writable: true,
  _last: false,
  chunkedEncoding: false,
  shouldKeepAlive: true,
  useChunkedEncodingByDefault: true,
  sendDate: true,
  _headerSent: false,
  _header: '',
  _hasBody: true,
  _trailer: '',
  finished: false,
  _hangupClose: false,
  socket: 
   { _connecting: false,
     _handle: 
      { fd: 28,
        writeQueueSize: 0,
        owner: [Object],
        onread: [Function],
        reading: true },
     _readableState: 
      { highWaterMark: 16384,
        buffer: [],
        length: 0,
        pipes: null,
        pipesCount: 0,
        flowing: false,
        ended: false,
        endEmitted: false,
        reading: true,
        calledRead: true,
        sync: false,
        needReadable: true,
        emittedReadable: false,
        readableListening: false,
        objectMode: false,
        defaultEncoding: 'utf8',
        ranOut: false,
        awaitDrain: 0,
        readingMore: false,
        decoder: null,
        encoding: null },
     readable: true,
     domain: null,
     _events: 
      { end: [Function],
        finish: [Function],
        _socketEnd: [Function],
        drain: [Object],
        timeout: [Function],
        error: [Object],
        close: [Object] },
     _maxListeners: 10,
     _writableState: 
      { highWaterMark: 16384,
        objectMode: false,
        needDrain: false,
        ending: false,
        ended: false,
        finished: false,
        decodeStrings: false,
        defaultEncoding: 'utf8',
        length: 0,
        writing: false,
        sync: true,
        bufferProcessing: false,
        onwrite: [Function],
        writecb: null,
        writelen: 0,
        buffer: [],
        errorEmitted: false },
     writable: true,
     allowHalfOpen: true,
     onend: [Function],
     destroyed: false,
     bytesRead: 2073,
     _bytesDispatched: 0,
     _pendingData: null,
     _pendingEncoding: '',
     server: 
      { domain: null,
        _events: [Object],
        _maxListeners: 10,
        _connections: 1,
        connections: undefined,
        _handle: [Object],
        _usingSlaves: false,
        _slaves: [],
        allowHalfOpen: true,
        httpAllowHalfOpen: false,
        timeout: 120000,
        _connectionKey: '4:0.0.0.0:3000' },
     _idleTimeout: 120000,
     _idleNext: 
      { _connecting: false,
        _handle: [Object],
        _readableState: [Object],
        readable: true,
        domain: null,
        _events: [Object],
        _maxListeners: 10,
        _writableState: [Object],
        writable: true,
        allowHalfOpen: false,
        onend: null,
        destroyed: false,
        bytesRead: 1131,
        _bytesDispatched: 174,
        _pendingData: null,
        _pendingEncoding: '',
        _idleTimeout: 30000,
        _idleNext: [Object],
        _idlePrev: [Object],
        _idleStart: 1429687253253,
        _monotonicStartTime: 642907784,
        pipe: [Function],
        addListener: [Function],
        on: [Function],
        pause: [Function],
        resume: [Function],
        read: [Function],
        _consuming: true },
     _idlePrev: { _idleNext: [Object], _idlePrev: [Object] },
     _idleStart: 1429687254137,
     _monotonicStartTime: 642908668,
     parser: 
      { _headers: [],
        _url: '',
        onHeaders: [Function],
        onHeadersComplete: [Function],
        onBody: [Function],
        onMessageComplete: [Function],
        socket: [Object],
        incoming: [Object],
        maxHeaderPairs: 2000,
        onIncoming: [Function] },
     ondata: [Function],
     _paused: false,
     _httpMessage: 
      { domain: null,
        _events: [Object],
        _maxListeners: 10,
        output: [],
        outputEncodings: [],
        writable: true,
        _last: false,
        chunkedEncoding: false,
        shouldKeepAlive: true,
        useChunkedEncodingByDefault: true,
        sendDate: true,
        _headerSent: false,
        _header: '',
        _hasBody: true,
        _trailer: '',
        finished: false,
        _hangupClose: false,
        socket: [Object],
        connection: [Object],
        _headers: [Object],
        _headerNames: [Object],
        req: [Object],
        locals: [Object],
        flush: [Function],
        write: [Function],
        end: [Function],
        on: [Function],
        writeHead: [Function],
        __onFinished: [Function] },
     _peername: 
      { address: '127.0.0.1',
        family: 'IPv4',
        port: 65305 } },
  connection: 
   { _connecting: false,
     _handle: 
      { fd: 28,
        writeQueueSize: 0,
        owner: [Object],
        onread: [Function],
        reading: true },
     _readableState: 
      { highWaterMark: 16384,
        buffer: [],
        length: 0,
        pipes: null,
        pipesCount: 0,
        flowing: false,
        ended: false,
        endEmitted: false,
        reading: true,
        calledRead: true,
        sync: false,
        needReadable: true,
        emittedReadable: false,
        readableListening: false,
        objectMode: false,
        defaultEncoding: 'utf8',
        ranOut: false,
        awaitDrain: 0,
        readingMore: false,
        decoder: null,
        encoding: null },
     readable: true,
     domain: null,
     _events: 
      { end: [Function],
        finish: [Function],
        _socketEnd: [Function],
        drain: [Object],
        timeout: [Function],
        error: [Object],
        close: [Object] },
     _maxListeners: 10,
     _writableState: 
      { highWaterMark: 16384,
        objectMode: false,
        needDrain: false,
        ending: false,
        ended: false,
        finished: false,
        decodeStrings: false,
        defaultEncoding: 'utf8',
        length: 0,
        writing: false,
        sync: true,
        bufferProcessing: false,
        onwrite: [Function],
        writecb: null,
        writelen: 0,
        buffer: [],
        errorEmitted: false },
     writable: true,
     allowHalfOpen: true,
     onend: [Function],
     destroyed: false,
     bytesRead: 2073,
     _bytesDispatched: 0,
     _pendingData: null,
     _pendingEncoding: '',
     server: 
      { domain: null,
        _events: [Object],
        _maxListeners: 10,
        _connections: 1,
        connections: undefined,
        _handle: [Object],
        _usingSlaves: false,
        _slaves: [],
        allowHalfOpen: true,
        httpAllowHalfOpen: false,
        timeout: 120000,
        _connectionKey: '4:0.0.0.0:3000' },
     _idleTimeout: 120000,
     _idleNext: 
      { _connecting: false,
        _handle: [Object],
        _readableState: [Object],
        readable: true,
        domain: null,
        _events: [Object],
        _maxListeners: 10,
        _writableState: [Object],
        writable: true,
        allowHalfOpen: false,
        onend: null,
        destroyed: false,
        bytesRead: 1131,
        _bytesDispatched: 174,
        _pendingData: null,
        _pendingEncoding: '',
        _idleTimeout: 30000,
        _idleNext: [Object],
        _idlePrev: [Object],
        _idleStart: 1429687253253,
        _monotonicStartTime: 642907784,
        pipe: [Function],
        addListener: [Function],
        on: [Function],
        pause: [Function],
        resume: [Function],
        read: [Function],
        _consuming: true },
     _idlePrev: { _idleNext: [Object], _idlePrev: [Object] },
     _idleStart: 1429687254137,
     _monotonicStartTime: 642908668,
     parser: 
      { _headers: [],
        _url: '',
        onHeaders: [Function],
        onHeadersComplete: [Function],
        onBody: [Function],
        onMessageComplete: [Function],
        socket: [Object],
        incoming: [Object],
        maxHeaderPairs: 2000,
        onIncoming: [Function] },
     ondata: [Function],
     _paused: false,
     _httpMessage: 
      { domain: null,
        _events: [Object],
        _maxListeners: 10,
        output: [],
        outputEncodings: [],
        writable: true,
        _last: false,
        chunkedEncoding: false,
        shouldKeepAlive: true,
        useChunkedEncodingByDefault: true,
        sendDate: true,
        _headerSent: false,
        _header: '',
        _hasBody: true,
        _trailer: '',
        finished: false,
        _hangupClose: false,
        socket: [Object],
        connection: [Object],
        _headers: [Object],
        _headerNames: [Object],
        req: [Object],
        locals: [Object],
        flush: [Function],
        write: [Function],
        end: [Function],
        on: [Function],
        writeHead: [Function],
        __onFinished: [Function] },
     _peername: 
      { address: '127.0.0.1',
        family: 'IPv4',
        port: 65305 } },
  _headers: 
   { vary: 'X-HTTP-Method-Override',
     'x-powered-by': 'Express' },
  _headerNames: 
   { vary: 'Vary',
     'x-powered-by': 'X-Powered-By' },
  req: 
   { upgrade: false,
     method: 'POST',
     domain: null,
     query: {},
     pipe: [Function],
     httpVersion: '1.1',
     cookies: 
      { performance_session_email: 'nima@taplytics.com',
        _tl_sid_undefined: '55344e82d0ada63e8a1860f9',
        switchId: '25317262-a5fc-487a-b936-512c17a0f0b6',
        performance_session_id: '54b70e452b5eca000456aeaf',
        performance_session_uuid: 'b35e8261-4a8c-4f02-be98-4c718d60f8f3',
        ajs_user_id: 'null',
        __hstc: '181257784.608a121d7ee56079d932f89958d21e15.1421530649316.1425036955743.142537241... (length: 87)',
        'connect.sid': 's:lLCDXu-z84IS7dBbHSHPlngm13Wguf95.USeMuwxzVAqNzx4G9Q5WaH8hv4aoOQFKGcon8g89kmE',
        _tl_auid_undefined: '55307e96011ecd9f694aad4b',
        _ga: 'GA1.1.1361914700.1423952333',
        performance_session_first_external: '{"referrer":"","location":{"href":"http://localhost:3002/","search":"","host":"l... (length: 515)',
        ajs_group_id: 'null',
        ajs_anonymous_id: '"5882eca7-dda7-438f-b57b-b976273382d3"',
        _tl_suuid_undefined: '311a060c-375c-49f8-bb5d-2509344d9a05',
        hubspotutk: '608a121d7ee56079d932f89958d21e15',
        __hssrc: '1',
        hsfirstvisit: 'http://localhost:3002/||1421530649313' },
     headers: 
      { authorization: 'Bearer lp54CHRhRYHtAYUR8osRBOO2Z7sbDg/lpJWLILEc/FCcP83RjjTF59JhgFCL/5K0hc0J4oBRJ... (length: 95)',
        'accept-encoding': 'gzip, deflate',
        'accept-language': 'en-US,en;q=0.8',
        'cache-control': 'no-cache',
        host: 'localhost:3000',
        origin: 'chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm',
        'content-type': 'application/json',
        'content-length': '0',
        connection: 'keep-alive',
        cookie: 'hsfirstvisit=http%3A%2F%2Flocalhost%3A3002%2F||1421530649313; performance_sessio... (length: 1531)',
        accept: '*/*',
        'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like ... (length: 121)' },
     on: [Function],
     _consuming: true,
     flash: [Function],
     connection: 
      { _connecting: false,
        _handle: [Object],
        _readableState: [Object],
        readable: true,
        domain: null,
        _events: [Object],
        _maxListeners: 10,
        _writableState: [Object],
        writable: true,
        allowHalfOpen: true,
        onend: [Function],
        destroyed: false,
        bytesRead: 2073,
        _bytesDispatched: 0,
        _pendingData: null,
        _pendingEncoding: '',
        server: [Object],
        _idleTimeout: 120000,
        _idleNext: [Object],
        _idlePrev: [Object],
        _idleStart: 1429687254137,
        _monotonicStartTime: 642908668,
        parser: [Object],
        ondata: [Function],
        _paused: false,
        _httpMessage: [Object],
        _peername: [Object] },
     _readableState: 
      { highWaterMark: 16384,
        buffer: [],
        length: 0,
        pipes: null,
        pipesCount: 0,
        flowing: false,
        ended: true,
        endEmitted: true,
        reading: false,
        calledRead: true,
        sync: false,
        needReadable: true,
        emittedReadable: false,
        readableListening: false,
        objectMode: false,
        defaultEncoding: 'utf8',
        ranOut: false,
        awaitDrain: 0,
        readingMore: false,
        decoder: null,
        encoding: null },
     secret: undefined,
     _dumped: false,
     body: {},
     _passport: { instance: [Object], session: {} },
     _parsedOriginalUrl: 
      { protocol: null,
        slashes: null,
        auth: null,
        host: null,
        port: null,
        hostname: null,
        hash: null,
        search: null,
        query: null,
        pathname: '/hello',
        path: '/hello',
        href: '/hello',
        _raw: '/hello' },
     url: '/hello',
     _startAt: [ 642908, 669470227 ],
     addListener: [Function],
     params: {},
     pause: [Function],
     _body: true,
     readable: false,
     _parsedUrl: 
      { protocol: null,
        slashes: null,
        auth: null,
        host: null,
        port: null,
        hostname: null,
        hash: null,
        search: null,
        query: null,
        pathname: '/hello',
        path: '/hello',
        href: '/hello',
        _raw: '/hello' },
     signedCookies: {},
     _remoteAddress: '127.0.0.1',
     statusCode: null,
     _events: { close: [Object], readable: [Function] },
     route: 
      { path: '/hello',
        stack: [Object],
        methods: [Object] },
     complete: true,
     session: 
      { req: [Object],
        id: 'lLCDXu-z84IS7dBbHSHPlngm13Wguf95',
        cookie: [Object],
        passport: {},
        save: [Function] },
     originalMethod: 'POST',
     _pendings: [],
     sessionStore: 
      { options: [Object],
        getCollection: [Function],
        getSessionId: [Function],
        state: 'connected',
        _events: [Object],
        generate: [Function],
        db: [Object],
        collection: [Object] },
     sessionID: 'lLCDXu-z84IS7dBbHSHPlngm13Wguf95',
     httpVersionMajor: 1,
     socket: 
      { _connecting: false,
        _handle: [Object],
        _readableState: [Object],
        readable: true,
        domain: null,
        _events: [Object],
        _maxListeners: 10,
        _writableState: [Object],
        writable: true,
        allowHalfOpen: true,
        onend: [Function],
        destroyed: false,
        bytesRead: 2073,
        _bytesDispatched: 0,
        _pendingData: null,
        _pendingEncoding: '',
        server: [Object],
        _idleTimeout: 120000,
        _idleNext: [Object],
        _idlePrev: [Object],
        _idleStart: 1429687254137,
        _monotonicStartTime: 642908668,
        parser: [Object],
        ondata: [Function],
        _paused: false,
        _httpMessage: [Object],
        _peername: [Object] },
     _startTime: Wed Apr 22 2015 00:20:54 GMT-0700 (PDT),
     _pendingIndex: 0,
     res: 
      { domain: null,
        _events: [Object],
        _maxListeners: 10,
        output: [],
        outputEncodings: [],
        writable: true,
        _last: false,
        chunkedEncoding: false,
        shouldKeepAlive: true,
        useChunkedEncodingByDefault: true,
        sendDate: true,
        _headerSent: false,
        _header: '',
        _hasBody: true,
        _trailer: '',
        finished: false,
        _hangupClose: false,
        socket: [Object],
        connection: [Object],
        _headers: [Object],
        _headerNames: [Object],
        req: [Object],
        locals: [Object],
        flush: [Function],
        write: [Function],
        end: [Function],
        on: [Function],
        writeHead: [Function],
        __onFinished: [Function] },
     next: [Function],
     read: [Function],
     client: 
      { _connecting: false,
        _handle: [Object],
        _readableState: [Object],
        readable: true,
        domain: null,
        _events: [Object],
        _maxListeners: 10,
        _writableState: [Object],
        writable: true,
        allowHalfOpen: true,
        onend: [Function],
        destroyed: false,
        bytesRead: 2073,
        _bytesDispatched: 0,
        _pendingData: null,
        _pendingEncoding: '',
        server: [Object],
        _idleTimeout: 120000,
        _idleNext: [Object],
        _idlePrev: [Object],
        _idleStart: 1429687254137,
        _monotonicStartTime: 642908668,
        parser: [Object],
        ondata: [Function],
        _paused: false,
        _httpMessage: [Object],
        _peername: [Object] },
     httpVersionMinor: 1,
     baseUrl: '',
     resume: [Function],
     _maxListeners: 10,
     trailers: {},
     originalUrl: '/hello' },
  locals: 
   { session: 
      { req: [Object],
        id: 'lLCDXu-z84IS7dBbHSHPlngm13Wguf95',
        cookie: [Object],
        passport: {},
        save: [Function] },
     req: 
      { upgrade: false,
        method: 'POST',
        domain: null,
        query: {},
        pipe: [Function],
        httpVersion: '1.1',
        cookies: [Object],
        headers: [Object],
        on: [Function],
        _consuming: true,
        flash: [Function],
        connection: [Object],
        _readableState: [Object],
        secret: undefined,
        _dumped: false,
        body: {},
        _passport: [Object],
        _parsedOriginalUrl: [Object],
        url: '/hello',
        _startAt: [Object],
        addListener: [Function],
        params: {},
        pause: [Function],
        _body: true,
        readable: false,
        _parsedUrl: [Object],
        signedCookies: {},
        _remoteAddress: '127.0.0.1',
        statusCode: null,
        _events: [Object],
        route: [Object],
        complete: true,
        session: [Object],
        originalMethod: 'POST',
        _pendings: [],
        sessionStore: [Object],
        sessionID: 'lLCDXu-z84IS7dBbHSHPlngm13Wguf95',
        httpVersionMajor: 1,
        socket: [Object],
        _startTime: Wed Apr 22 2015 00:20:54 GMT-0700 (PDT),
        _pendingIndex: 0,
        res: [Object],
        next: [Function],
        read: [Function],
        client: [Object],
        httpVersionMinor: 1,
        baseUrl: '',
        resume: [Function],
        _maxListeners: 10,
        trailers: {},
        originalUrl: '/hello' } },
  flush: [Function],
  write: [Function],
  end: [Function],
  on: [Function],
  writeHead: [Function],
  __onFinished: [Function] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment