Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 27.71 KB | None | 0 0
  1. Mongoose: users.findOne({ _id: ObjectId("58d69837d915d117d8ff2e29") }, { fields: {} })
  2.  
  3. events.js:160
  4.       throw er; // Unhandled 'error' event
  5.       ^
  6. CastError: Cast to ObjectId failed for value "IncomingMessage {
  7.  _readableState:
  8.   ReadableState {
  9.     objectMode: false,
  10.     highWaterMark: 16384,
  11.     buffer: BufferList { head: null, tail: null, length: 0 },
  12.     length: 0,
  13.     pipes: null,
  14.     pipesCount: 0,
  15.     flowing: null,
  16.     ended: true,
  17.     endEmitted: false,
  18.     reading: false,
  19.     sync: true,
  20.     needReadable: false,
  21.     emittedReadable: true,
  22.     readableListening: false,
  23.     resumeScheduled: false,
  24.     defaultEncoding: 'utf8',
  25.     ranOut: false,
  26.     awaitDrain: 0,
  27.     readingMore: true,
  28.     decoder: null,
  29.     encoding: null },
  30.  readable: true,
  31.  domain: null,
  32.  _events: {},
  33.  _eventsCount: 0,
  34.  _maxListeners: undefined,
  35.  socket:
  36.   Socket {
  37.     connecting: false,
  38.     _hadError: false,
  39.     _handle:
  40.      TCP {
  41.        bytesRead: 1056,
  42.        _externalStream: {},
  43.        fd: 14,
  44.        reading: true,
  45.        owner: [Circular],
  46.        onread: [Function: onread],
  47.        onconnection: null,
  48.        writeQueueSize: 0 },
  49.     _parent: null,
  50.     _host: null,
  51.     _readableState:
  52.      ReadableState {
  53.        objectMode: false,
  54.        highWaterMark: 16384,
  55.        buffer: [Object],
  56.        length: 0,
  57.        pipes: null,
  58.        pipesCount: 0,
  59.        flowing: true,
  60.        ended: false,
  61.        endEmitted: false,
  62.        reading: true,
  63.        sync: false,
  64.        needReadable: true,
  65.        emittedReadable: false,
  66.        readableListening: false,
  67.        resumeScheduled: false,
  68.        defaultEncoding: 'utf8',
  69.        ranOut: false,
  70.        awaitDrain: 0,
  71.        readingMore: false,
  72.        decoder: null,
  73.        encoding: null },
  74.     readable: true,
  75.     domain: null,
  76.     _events:
  77.      { end: [Object],
  78.        finish: [Function: onSocketFinish],
  79.        _socketEnd: [Function: onSocketEnd],
  80.        drain: [Object],
  81.        timeout: [Function],
  82.        error: [Object],
  83.        close: [Object],
  84.        data: [Function: socketOnData],
  85.        resume: [Function: onSocketResume],
  86.        pause: [Function: onSocketPause] },
  87.     _eventsCount: 10,
  88.     _maxListeners: undefined,
  89.     _writableState:
  90.      WritableState {
  91.        objectMode: false,
  92.        highWaterMark: 16384,
  93.        needDrain: false,
  94.        ending: false,
  95.        ended: false,
  96.        finished: false,
  97.        decodeStrings: false,
  98.        defaultEncoding: 'utf8',
  99.        length: 0,
  100.        writing: false,
  101.        corked: 0,
  102.        sync: false,
  103.        bufferProcessing: false,
  104.        onwrite: [Function],
  105.        writecb: null,
  106.        writelen: 0,
  107.        bufferedRequest: null,
  108.        lastBufferedRequest: null,
  109.        pendingcb: 0,
  110.        prefinished: false,
  111.        errorEmitted: false,
  112.        bufferedRequestCount: 0,
  113.        corkedRequestsFree: [Object] },
  114.     writable: true,
  115.     allowHalfOpen: true,
  116.     destroyed: false,
  117.     _bytesDispatched: 390,
  118.     _sockname: null,
  119.     _pendingData: null,
  120.     _pendingEncoding: '',
  121.     server:
  122.      Server {
  123.        domain: null,
  124.        _events: [Object],
  125.        _eventsCount: 4,
  126.        _maxListeners: undefined,
  127.        _connections: 1,
  128.        _handle: [Object],
  129.        _usingSlaves: false,
  130.        _slaves: [],
  131.        _unref: false,
  132.        allowHalfOpen: true,
  133.        pauseOnConnect: false,
  134.        httpAllowHalfOpen: false,
  135.        timeout: 120000,
  136.        _pendingResponseData: 0,
  137.        _connectionKey: '6::::3000' },
  138.     _server:
  139.      Server {
  140.        domain: null,
  141.        _events: [Object],
  142.        _eventsCount: 4,
  143.        _maxListeners: undefined,
  144.        _connections: 1,
  145.        _handle: [Object],
  146.        _usingSlaves: false,
  147.        _slaves: [],
  148.        _unref: false,
  149.        allowHalfOpen: true,
  150.        pauseOnConnect: false,
  151.        httpAllowHalfOpen: false,
  152.        timeout: 120000,
  153.        _pendingResponseData: 0,
  154.        _connectionKey: '6::::3000' },
  155.     _idleTimeout: 120000,
  156.     _idleNext:
  157.      TimersList {
  158.        _idleNext: [Circular],
  159.        _idlePrev: [Circular],
  160.        _timer: [Object],
  161.        _unrefed: true,
  162.        msecs: 120000 },
  163.     _idlePrev:
  164.      TimersList {
  165.        _idleNext: [Circular],
  166.        _idlePrev: [Circular],
  167.        _timer: [Object],
  168.        _unrefed: true,
  169.        msecs: 120000 },
  170.     _idleStart: 10678,
  171.     parser:
  172.      HTTPParser {
  173.        '0': [Function: parserOnHeaders],
  174.        '1': [Function: parserOnHeadersComplete],
  175.        '2': [Function: parserOnBody],
  176.        '3': [Function: parserOnMessageComplete],
  177.        '4': [Function: onParserExecute],
  178.        _headers: [],
  179.        _url: '',
  180.        _consumed: true,
  181.        socket: [Circular],
  182.        incoming: [Circular],
  183.        outgoing: null,
  184.        maxHeaderPairs: 2000,
  185.        onIncoming: [Function: parserOnIncoming] },
  186.     on: [Function: socketOnWrap],
  187.     _paused: false,
  188.     read: [Function],
  189.     _consuming: true,
  190.     _httpMessage:
  191.      ServerResponse {
  192.        domain: null,
  193.        _events: [Object],
  194.        _eventsCount: 2,
  195.        _maxListeners: undefined,
  196.        output: [],
  197.        outputEncodings: [],
  198.        outputCallbacks: [],
  199.        outputSize: 0,
  200.        writable: true,
  201.        _last: false,
  202.        upgrading: false,
  203.        chunkedEncoding: false,
  204.        shouldKeepAlive: true,
  205.        useChunkedEncodingByDefault: true,
  206.        sendDate: true,
  207.        _removedHeader: {},
  208.        _contentLength: null,
  209.        _hasBody: true,
  210.        _trailer: '',
  211.        finished: false,
  212.        _headerSent: false,
  213.        socket: [Circular],
  214.        connection: [Circular],
  215.        _header: null,
  216.        _headers: [Object],
  217.        _headerNames: [Object],
  218.        _onPendingData: [Function: updateOutgoingData],
  219.        req: [Circular],
  220.        locals: [Object],
  221.        _startAt: undefined,
  222.        _startTime: undefined,
  223.        writeHead: [Function: writeHead],
  224.        __onFinished: [Object],
  225.        end: [Function: end] },
  226.     _peername: { address: '::ffff:127.0.0.1', family: 'IPv6', port: 37104 } },
  227.  connection:
  228.   Socket {
  229.     connecting: false,
  230.     _hadError: false,
  231.     _handle:
  232.      TCP {
  233.        bytesRead: 1056,
  234.        _externalStream: {},
  235.        fd: 14,
  236.        reading: true,
  237.        owner: [Circular],
  238.        onread: [Function: onread],
  239.        onconnection: null,
  240.        writeQueueSize: 0 },
  241.     _parent: null,
  242.     _host: null,
  243.     _readableState:
  244.      ReadableState {
  245.        objectMode: false,
  246.        highWaterMark: 16384,
  247.        buffer: [Object],
  248.        length: 0,
  249.        pipes: null,
  250.        pipesCount: 0,
  251.        flowing: true,
  252.        ended: false,
  253.        endEmitted: false,
  254.        reading: true,
  255.        sync: false,
  256.        needReadable: true,
  257.        emittedReadable: false,
  258.        readableListening: false,
  259.        resumeScheduled: false,
  260.        defaultEncoding: 'utf8',
  261.        ranOut: false,
  262.        awaitDrain: 0,
  263.        readingMore: false,
  264.        decoder: null,
  265.        encoding: null },
  266.     readable: true,
  267.     domain: null,
  268.     _events:
  269.      { end: [Object],
  270.        finish: [Function: onSocketFinish],
  271.        _socketEnd: [Function: onSocketEnd],
  272.        drain: [Object],
  273.        timeout: [Function],
  274.        error: [Object],
  275.        close: [Object],
  276.        data: [Function: socketOnData],
  277.        resume: [Function: onSocketResume],
  278.        pause: [Function: onSocketPause] },
  279.     _eventsCount: 10,
  280.     _maxListeners: undefined,
  281.     _writableState:
  282.      WritableState {
  283.        objectMode: false,
  284.        highWaterMark: 16384,
  285.        needDrain: false,
  286.        ending: false,
  287.        ended: false,
  288.        finished: false,
  289.        decodeStrings: false,
  290.        defaultEncoding: 'utf8',
  291.        length: 0,
  292.        writing: false,
  293.        corked: 0,
  294.        sync: false,
  295.        bufferProcessing: false,
  296.        onwrite: [Function],
  297.        writecb: null,
  298.        writelen: 0,
  299.        bufferedRequest: null,
  300.        lastBufferedRequest: null,
  301.        pendingcb: 0,
  302.        prefinished: false,
  303.        errorEmitted: false,
  304.        bufferedRequestCount: 0,
  305.        corkedRequestsFree: [Object] },
  306.     writable: true,
  307.     allowHalfOpen: true,
  308.     destroyed: false,
  309.     _bytesDispatched: 390,
  310.     _sockname: null,
  311.     _pendingData: null,
  312.     _pendingEncoding: '',
  313.     server:
  314.      Server {
  315.        domain: null,
  316.        _events: [Object],
  317.        _eventsCount: 4,
  318.        _maxListeners: undefined,
  319.        _connections: 1,
  320.        _handle: [Object],
  321.        _usingSlaves: false,
  322.        _slaves: [],
  323.        _unref: false,
  324.        allowHalfOpen: true,
  325.        pauseOnConnect: false,
  326.        httpAllowHalfOpen: false,
  327.        timeout: 120000,
  328.        _pendingResponseData: 0,
  329.        _connectionKey: '6::::3000' },
  330.     _server:
  331.      Server {
  332.        domain: null,
  333.        _events: [Object],
  334.        _eventsCount: 4,
  335.        _maxListeners: undefined,
  336.        _connections: 1,
  337.        _handle: [Object],
  338.        _usingSlaves: false,
  339.        _slaves: [],
  340.        _unref: false,
  341.        allowHalfOpen: true,
  342.        pauseOnConnect: false,
  343.        httpAllowHalfOpen: false,
  344.        timeout: 120000,
  345.        _pendingResponseData: 0,
  346.        _connectionKey: '6::::3000' },
  347.     _idleTimeout: 120000,
  348.     _idleNext:
  349.      TimersList {
  350.        _idleNext: [Circular],
  351.        _idlePrev: [Circular],
  352.        _timer: [Object],
  353.        _unrefed: true,
  354.        msecs: 120000 },
  355.     _idlePrev:
  356.      TimersList {
  357.        _idleNext: [Circular],
  358.        _idlePrev: [Circular],
  359.        _timer: [Object],
  360.        _unrefed: true,
  361.        msecs: 120000 },
  362.     _idleStart: 10678,
  363.     parser:
  364.      HTTPParser {
  365.        '0': [Function: parserOnHeaders],
  366.        '1': [Function: parserOnHeadersComplete],
  367.        '2': [Function: parserOnBody],
  368.        '3': [Function: parserOnMessageComplete],
  369.        '4': [Function: onParserExecute],
  370.        _headers: [],
  371.        _url: '',
  372.        _consumed: true,
  373.        socket: [Circular],
  374.        incoming: [Circular],
  375.        outgoing: null,
  376.        maxHeaderPairs: 2000,
  377.        onIncoming: [Function: parserOnIncoming] },
  378.     on: [Function: socketOnWrap],
  379.     _paused: false,
  380.     read: [Function],
  381.     _consuming: true,
  382.     _httpMessage:
  383.      ServerResponse {
  384.        domain: null,
  385.        _events: [Object],
  386.        _eventsCount: 2,
  387.        _maxListeners: undefined,
  388.        output: [],
  389.        outputEncodings: [],
  390.        outputCallbacks: [],
  391.        outputSize: 0,
  392.        writable: true,
  393.        _last: false,
  394.        upgrading: false,
  395.        chunkedEncoding: false,
  396.        shouldKeepAlive: true,
  397.        useChunkedEncodingByDefault: true,
  398.        sendDate: true,
  399.        _removedHeader: {},
  400.        _contentLength: null,
  401.        _hasBody: true,
  402.        _trailer: '',
  403.        finished: false,
  404.        _headerSent: false,
  405.        socket: [Circular],
  406.        connection: [Circular],
  407.        _header: null,
  408.        _headers: [Object],
  409.        _headerNames: [Object],
  410.        _onPendingData: [Function: updateOutgoingData],
  411.        req: [Circular],
  412.        locals: [Object],
  413.        _startAt: undefined,
  414.        _startTime: undefined,
  415.        writeHead: [Function: writeHead],
  416.        __onFinished: [Object],
  417.        end: [Function: end] },
  418.     _peername: { address: '::ffff:127.0.0.1', family: 'IPv6', port: 37104 } },
  419.  httpVersionMajor: 1,
  420.  httpVersionMinor: 1,
  421.  httpVersion: '1.1',
  422.  complete: true,
  423.  headers:
  424.   { host: 'localhost:3000',
  425.     'user-agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0',
  426.     accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  427.     'accept-language': 'en-US,en;q=0.5',
  428.     'accept-encoding': 'gzip, deflate',
  429.     referer: 'http://localhost:3000/profile',
  430.     cookie: 'connect.sid=s%3AWXC3cWHwNmVnKhYToq7BjSkFTmIAc6ld.0%2BPRxLntESZYpDxvB7cA9FINDpk8B%2B%2FOZdzBI7bKO4s',
  431.     connection: 'keep-alive',
  432.     'upgrade-insecure-requests': '1' },
  433.  rawHeaders:
  434.   [ 'Host',
  435.     'localhost:3000',
  436.     'User-Agent',
  437.     'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0',
  438.     'Accept',
  439.     'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  440.     'Accept-Language',
  441.     'en-US,en;q=0.5',
  442.     'Accept-Encoding',
  443.     'gzip, deflate',
  444.     'Referer',
  445.     'http://localhost:3000/profile',
  446.     'Cookie',
  447.     'connect.sid=s%3AWXC3cWHwNmVnKhYToq7BjSkFTmIAc6ld.0%2BPRxLntESZYpDxvB7cA9FINDpk8B%2B%2FOZdzBI7bKO4s',
  448.     'Connection',
  449.     'keep-alive',
  450.     'Upgrade-Insecure-Requests',
  451.     '1' ],
  452.  trailers: {},
  453.  rawTrailers: [],
  454.  upgrade: false,
  455.  url: '/',
  456.  method: 'GET',
  457.  statusCode: null,
  458.  statusMessage: null,
  459.  client:
  460.   Socket {
  461.     connecting: false,
  462.     _hadError: false,
  463.     _handle:
  464.      TCP {
  465.        bytesRead: 1056,
  466.        _externalStream: {},
  467.        fd: 14,
  468.        reading: true,
  469.        owner: [Circular],
  470.        onread: [Function: onread],
  471.        onconnection: null,
  472.        writeQueueSize: 0 },
  473.     _parent: null,
  474.     _host: null,
  475.     _readableState:
  476.      ReadableState {
  477.        objectMode: false,
  478.        highWaterMark: 16384,
  479.        buffer: [Object],
  480.        length: 0,
  481.        pipes: null,
  482.        pipesCount: 0,
  483.        flowing: true,
  484.        ended: false,
  485.        endEmitted: false,
  486.        reading: true,
  487.        sync: false,
  488.        needReadable: true,
  489.        emittedReadable: false,
  490.        readableListening: false,
  491.        resumeScheduled: false,
  492.        defaultEncoding: 'utf8',
  493.        ranOut: false,
  494.        awaitDrain: 0,
  495.        readingMore: false,
  496.        decoder: null,
  497.        encoding: null },
  498.     readable: true,
  499.     domain: null,
  500.     _events:
  501.      { end: [Object],
  502.        finish: [Function: onSocketFinish],
  503.        _socketEnd: [Function: onSocketEnd],
  504.        drain: [Object],
  505.        timeout: [Function],
  506.        error: [Object],
  507.        close: [Object],
  508.        data: [Function: socketOnData],
  509.        resume: [Function: onSocketResume],
  510.        pause: [Function: onSocketPause] },
  511.     _eventsCount: 10,
  512.     _maxListeners: undefined,
  513.     _writableState:
  514.      WritableState {
  515.        objectMode: false,
  516.        highWaterMark: 16384,
  517.        needDrain: false,
  518.        ending: false,
  519.        ended: false,
  520.        finished: false,
  521.        decodeStrings: false,
  522.        defaultEncoding: 'utf8',
  523.        length: 0,
  524.        writing: false,
  525.        corked: 0,
  526.        sync: false,
  527.        bufferProcessing: false,
  528.        onwrite: [Function],
  529.        writecb: null,
  530.        writelen: 0,
  531.        bufferedRequest: null,
  532.        lastBufferedRequest: null,
  533.        pendingcb: 0,
  534.        prefinished: false,
  535.        errorEmitted: false,
  536.        bufferedRequestCount: 0,
  537.        corkedRequestsFree: [Object] },
  538.     writable: true,
  539.     allowHalfOpen: true,
  540.     destroyed: false,
  541.     _bytesDispatched: 390,
  542.     _sockname: null,
  543.     _pendingData: null,
  544.     _pendingEncoding: '',
  545.     server:
  546.      Server {
  547.        domain: null,
  548.        _events: [Object],
  549.        _eventsCount: 4,
  550.        _maxListeners: undefined,
  551.        _connections: 1,
  552.        _handle: [Object],
  553.        _usingSlaves: false,
  554.        _slaves: [],
  555.        _unref: false,
  556.        allowHalfOpen: true,
  557.        pauseOnConnect: false,
  558.        httpAllowHalfOpen: false,
  559.        timeout: 120000,
  560.        _pendingResponseData: 0,
  561.        _connectionKey: '6::::3000' },
  562.     _server:
  563.      Server {
  564.        domain: null,
  565.        _events: [Object],
  566.        _eventsCount: 4,
  567.        _maxListeners: undefined,
  568.        _connections: 1,
  569.        _handle: [Object],
  570.        _usingSlaves: false,
  571.        _slaves: [],
  572.        _unref: false,
  573.        allowHalfOpen: true,
  574.        pauseOnConnect: false,
  575.        httpAllowHalfOpen: false,
  576.        timeout: 120000,
  577.        _pendingResponseData: 0,
  578.        _connectionKey: '6::::3000' },
  579.     _idleTimeout: 120000,
  580.     _idleNext:
  581.      TimersList {
  582.        _idleNext: [Circular],
  583.        _idlePrev: [Circular],
  584.        _timer: [Object],
  585.        _unrefed: true,
  586.        msecs: 120000 },
  587.     _idlePrev:
  588.      TimersList {
  589.        _idleNext: [Circular],
  590.        _idlePrev: [Circular],
  591.        _timer: [Object],
  592.        _unrefed: true,
  593.        msecs: 120000 },
  594.     _idleStart: 10678,
  595.     parser:
  596.      HTTPParser {
  597.        '0': [Function: parserOnHeaders],
  598.        '1': [Function: parserOnHeadersComplete],
  599.        '2': [Function: parserOnBody],
  600.        '3': [Function: parserOnMessageComplete],
  601.        '4': [Function: onParserExecute],
  602.        _headers: [],
  603.        _url: '',
  604.        _consumed: true,
  605.        socket: [Circular],
  606.        incoming: [Circular],
  607.        outgoing: null,
  608.        maxHeaderPairs: 2000,
  609.        onIncoming: [Function: parserOnIncoming] },
  610.     on: [Function: socketOnWrap],
  611.     _paused: false,
  612.     read: [Function],
  613.     _consuming: true,
  614.     _httpMessage:
  615.      ServerResponse {
  616.        domain: null,
  617.        _events: [Object],
  618.        _eventsCount: 2,
  619.        _maxListeners: undefined,
  620.        output: [],
  621.        outputEncodings: [],
  622.        outputCallbacks: [],
  623.        outputSize: 0,
  624.        writable: true,
  625.        _last: false,
  626.        upgrading: false,
  627.        chunkedEncoding: false,
  628.        shouldKeepAlive: true,
  629.        useChunkedEncodingByDefault: true,
  630.        sendDate: true,
  631.        _removedHeader: {},
  632.        _contentLength: null,
  633.        _hasBody: true,
  634.        _trailer: '',
  635.        finished: false,
  636.        _headerSent: false,
  637.        socket: [Circular],
  638.        connection: [Circular],
  639.        _header: null,
  640.        _headers: [Object],
  641.        _headerNames: [Object],
  642.        _onPendingData: [Function: updateOutgoingData],
  643.        req: [Circular],
  644.        locals: [Object],
  645.        _startAt: undefined,
  646.        _startTime: undefined,
  647.        writeHead: [Function: writeHead],
  648.        __onFinished: [Object],
  649.        end: [Function: end] },
  650.     _peername: { address: '::ffff:127.0.0.1', family: 'IPv6', port: 37104 } },
  651.  _consuming: false,
  652.  _dumped: false,
  653.  next: [Function: next],
  654.  baseUrl: '/profile',
  655.  originalUrl: '/profile',
  656.  _parsedUrl:
  657.   Url {
  658.     protocol: null,
  659.     slashes: null,
  660.     auth: null,
  661.     host: null,
  662.     port: null,
  663.     hostname: null,
  664.     hash: null,
  665.     search: null,
  666.     query: null,
  667.     pathname: '/',
  668.     path: '/',
  669.     href: '/',
  670.     _raw: '/' },
  671.  params: {},
  672.  query: {},
  673.  res:
  674.   ServerResponse {
  675.     domain: null,
  676.     _events: { finish: [Object], end: [Function: onevent] },
  677.     _eventsCount: 2,
  678.     _maxListeners: undefined,
  679.     output: [],
  680.     outputEncodings: [],
  681.     outputCallbacks: [],
  682.     outputSize: 0,
  683.     writable: true,
  684.     _last: false,
  685.     upgrading: false,
  686.     chunkedEncoding: false,
  687.     shouldKeepAlive: true,
  688.     useChunkedEncodingByDefault: true,
  689.     sendDate: true,
  690.     _removedHeader: {},
  691.     _contentLength: null,
  692.     _hasBody: true,
  693.     _trailer: '',
  694.     finished: false,
  695.     _headerSent: false,
  696.     socket:
  697.      Socket {
  698.        connecting: false,
  699.        _hadError: false,
  700.        _handle: [Object],
  701.        _parent: null,
  702.        _host: null,
  703.        _readableState: [Object],
  704.        readable: true,
  705.        domain: null,
  706.        _events: [Object],
  707.        _eventsCount: 10,
  708.        _maxListeners: undefined,
  709.        _writableState: [Object],
  710.        writable: true,
  711.        allowHalfOpen: true,
  712.        destroyed: false,
  713.        _bytesDispatched: 390,
  714.        _sockname: null,
  715.        _pendingData: null,
  716.        _pendingEncoding: '',
  717.        server: [Object],
  718.        _server: [Object],
  719.        _idleTimeout: 120000,
  720.        _idleNext: [Object],
  721.        _idlePrev: [Object],
  722.        _idleStart: 10678,
  723.        parser: [Object],
  724.        on: [Function: socketOnWrap],
  725.        _paused: false,
  726.        read: [Function],
  727.        _consuming: true,
  728.        _httpMessage: [Circular],
  729.        _peername: [Object] },
  730.     connection:
  731.      Socket {
  732.        connecting: false,
  733.        _hadError: false,
  734.        _handle: [Object],
  735.        _parent: null,
  736.        _host: null,
  737.        _readableState: [Object],
  738.        readable: true,
  739.        domain: null,
  740.        _events: [Object],
  741.        _eventsCount: 10,
  742.        _maxListeners: undefined,
  743.        _writableState: [Object],
  744.        writable: true,
  745.        allowHalfOpen: true,
  746.        destroyed: false,
  747.        _bytesDispatched: 390,
  748.        _sockname: null,
  749.        _pendingData: null,
  750.        _pendingEncoding: '',
  751.        server: [Object],
  752.        _server: [Object],
  753.        _idleTimeout: 120000,
  754.        _idleNext: [Object],
  755.        _idlePrev: [Object],
  756.        _idleStart: 10678,
  757.        parser: [Object],
  758.        on: [Function: socketOnWrap],
  759.        _paused: false,
  760.        read: [Function],
  761.        _consuming: true,
  762.        _httpMessage: [Circular],
  763.        _peername: [Object] },
  764.     _header: null,
  765.     _headers: { 'x-powered-by': 'Express' },
  766.     _headerNames: { 'x-powered-by': 'X-Powered-By' },
  767.     _onPendingData: [Function: updateOutgoingData],
  768.     req: [Circular],
  769.     locals: { success_msg: [], error_msg: [], error: [], user: [Object] },
  770.     _startAt: undefined,
  771.     _startTime: undefined,
  772.     writeHead: [Function: writeHead],
  773.     __onFinished: { [Function: listener] queue: [Object] },
  774.     end: [Function: end] },
  775.  _startAt: [ 7917, 975156719 ],
  776.  _startTime: 2017-03-27T14:04:23.468Z,
  777.  _remoteAddress: '::ffff:127.0.0.1',
  778.  body: {},
  779.  secret: undefined,
  780.  cookies: { 'connect.sid': 's:WXC3cWHwNmVnKhYToq7BjSkFTmIAc6ld.0+PRxLntESZYpDxvB7cA9FINDpk8B+/OZdzBI7bKO4s' },
  781.  signedCookies: {},
  782.  _parsedOriginalUrl:
  783.   Url {
  784.     protocol: null,
  785.     slashes: null,
  786.     auth: null,
  787.     host: null,
  788.     port: null,
  789.     hostname: null,
  790.     hash: null,
  791.     search: null,
  792.     query: null,
  793.     pathname: '/profile',
  794.     path: '/profile',
  795.     href: '/profile',
  796.     _raw: '/profile' },
  797.  sessionStore:
  798.   MemoryStore {
  799.     domain: null,
  800.     _events:
  801.      { disconnect: [Function: ondisconnect],
  802.        connect: [Function: onconnect] },
  803.     _eventsCount: 2,
  804.     _maxListeners: undefined,
  805.     sessions: { WXC3cWHwNmVnKhYToq7BjSkFTmIAc6ld: '{"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"flash":{"success":["You are now logged in"]},"passport":{"user":"58d69837d915d117d8ff2e29"}}' },
  806.     generate: [Function] },
  807.  sessionID: 'WXC3cWHwNmVnKhYToq7BjSkFTmIAc6ld',
  808.  session:
  809.   Session {
  810.     cookie:
  811.      { path: '/',
  812.        _expires: null,
  813.        originalMaxAge: null,
  814.        httpOnly: true },
  815.     flash: { success: [Object] },
  816.     passport: { user: '58d69837d915d117d8ff2e29' } },
  817.  _passport:
  818.   { instance:
  819.      Authenticator {
  820.        _key: 'passport',
  821.        _strategies: [Object],
  822.        _serializers: [Object],
  823.        _deserializers: [Object],
  824.        _infoTransformers: [],
  825.        _framework: [Object],
  826.        _userProperty: 'user',
  827.        Authenticator: [Function: Authenticator],
  828.        Passport: [Function: Authenticator],
  829.        Strategy: [Object],
  830.        strategies: [Object] },
  831.     session: { user: '58d69837d915d117d8ff2e29' } },
  832.  user:
  833.   { _id: 58d69837d915d117d8ff2e29,
  834.     email: 'Charlotte@charlotte.com',
  835.     username: 'Charlotte',
  836.     password: '$2a$10$Uhmu1rd1Bq5eMFAIFU78h.fWF9E/.RkjeywSkKJMvaUnsDC0Av9OO',
  837.     __v: 0 },
  838.  _validationErrors: [],
  839.  _asyncValidationErrors: [],
  840.  validationErrors: [Function],
  841.  asyncValidationErrors: [Function],
  842.  getValidationResult: [Function],
  843.  sanitizeBody: [Function],
  844.  sanitizeParams: [Function],
  845.  sanitizeQuery: [Function],
  846.  sanitizeHeaders: [Function],
  847.  sanitizeCookies: [Function],
  848.  sanitize: [Function],
  849.  checkBody: [Function],
  850.  checkParams: [Function],
  851.  checkQuery: [Function],
  852.  checkHeaders: [Function],
  853.  checkCookies: [Function],
  854.  check: [Function],
  855.  filter: [Function],
  856.  assert: [Function],
  857.  validate: [Function],
  858.  flash: [Function: _flash],
  859.  route:
  860.   Route {
  861.     path: '/',
  862.     stack: [ [Object], [Object] ],
  863.     methods: { get: true } } }" at path "_id" for model "User"
  864.     at MongooseError.CastError (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/error/cast.js:26:11)
  865.     at ObjectId.cast (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/schema/objectid.js:147:13)
  866.     at ObjectId.castForQuery (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/schema/objectid.js:187:15)
  867.     at cast (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/cast.js:229:32)
  868.     at Query.cast (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/query.js:2915:12)
  869.     at Query.find (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/query.js:1168:10)
  870.     at Function.find (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/model.js:1238:13)
  871.     at Function.module.exports.getUsernameById (/home/jay/project/viva/project/Counselling/models/user.js:42:7)
  872.     at /home/jay/project/viva/project/Counselling/routes/profile.js:10:7
  873.     at Layer.handle [as handle_request] (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/layer.js:95:5)
  874.     at next (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/route.js:131:13)
  875.     at ensureAuthenticated (/home/jay/project/viva/project/Counselling/routes/profile.js:21:10)
  876.     at Layer.handle [as handle_request] (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/layer.js:95:5)
  877.     at next (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/route.js:131:13)
  878.     at Route.dispatch (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/route.js:112:3)
  879.     at Layer.handle [as handle_request] (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/layer.js:95:5)
  880.     at /home/jay/project/viva/project/Counselling/node_modules/express/lib/router/index.js:277:22
  881.     at Function.process_params (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/index.js:330:12)
  882.     at next (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/index.js:271:10)
  883.     at Function.handle (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/index.js:176:3)
  884.     at router (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/index.js:46:12)
  885.     at Layer.handle [as handle_request] (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/layer.js:95:5)
  886.  
  887. npm ERR! Linux 4.8.0-41-generic
  888. npm ERR! argv "/home/jay/.nvm/versions/node/v6.10.0/bin/node" "/home/jay/.nvm/versions/node/v6.10.0/bin/npm" "start"
  889. npm ERR! node v6.10.0
  890. npm ERR! npm  v3.10.10
  891. npm ERR! code ELIFECYCLE
  892. npm ERR! counselling@0.0.0 start: `node ./bin/www`
  893. npm ERR! Exit status 1
  894. npm ERR!
  895. npm ERR! Failed at the counselling@0.0.0 start script 'node ./bin/www'.
  896. npm ERR! Make sure you have the latest version of node.js and npm installed.
  897. npm ERR! If you do, this is most likely a problem with the counselling package,
  898. npm ERR! not with npm itself.
  899. npm ERR! Tell the author that this fails on your system:
  900. npm ERR!     node ./bin/www
  901. npm ERR! You can get information on how to open an issue for this project with:
  902. npm ERR!     npm bugs counselling
  903. npm ERR! Or if that isn't available, you can get their info via:
  904. npm ERR!     npm owner ls counselling
  905. npm ERR! There is likely additional logging output above.
  906.  
  907. npm ERR! Please include the following file with any support request:
  908. npm ERR!     /home/jay/project/viva/project/Counselling/npm-debug.log
  909. jay@jay-VirtualBox:~/project/viva/project/Counselling$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement