Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mongoose: users.findOne({ _id: ObjectId("58d69837d915d117d8ff2e29") }, { fields: {} })
- events.js:160
- throw er; // Unhandled 'error' event
- ^
- CastError: Cast to ObjectId failed for value "IncomingMessage {
- _readableState:
- ReadableState {
- objectMode: false,
- highWaterMark: 16384,
- buffer: BufferList { head: null, tail: null, length: 0 },
- length: 0,
- pipes: null,
- pipesCount: 0,
- flowing: null,
- ended: true,
- endEmitted: false,
- reading: false,
- sync: true,
- needReadable: false,
- emittedReadable: true,
- readableListening: false,
- resumeScheduled: false,
- defaultEncoding: 'utf8',
- ranOut: false,
- awaitDrain: 0,
- readingMore: true,
- decoder: null,
- encoding: null },
- readable: true,
- domain: null,
- _events: {},
- _eventsCount: 0,
- _maxListeners: undefined,
- socket:
- Socket {
- connecting: false,
- _hadError: false,
- _handle:
- TCP {
- bytesRead: 1056,
- _externalStream: {},
- fd: 14,
- reading: true,
- owner: [Circular],
- onread: [Function: onread],
- onconnection: null,
- writeQueueSize: 0 },
- _parent: null,
- _host: null,
- _readableState:
- ReadableState {
- objectMode: false,
- highWaterMark: 16384,
- buffer: [Object],
- length: 0,
- pipes: null,
- pipesCount: 0,
- flowing: true,
- ended: false,
- endEmitted: false,
- reading: true,
- sync: false,
- needReadable: true,
- emittedReadable: false,
- readableListening: false,
- resumeScheduled: false,
- defaultEncoding: 'utf8',
- ranOut: false,
- awaitDrain: 0,
- readingMore: false,
- decoder: null,
- encoding: null },
- readable: true,
- domain: null,
- _events:
- { end: [Object],
- finish: [Function: onSocketFinish],
- _socketEnd: [Function: onSocketEnd],
- drain: [Object],
- timeout: [Function],
- error: [Object],
- close: [Object],
- data: [Function: socketOnData],
- resume: [Function: onSocketResume],
- pause: [Function: onSocketPause] },
- _eventsCount: 10,
- _maxListeners: undefined,
- _writableState:
- WritableState {
- objectMode: false,
- highWaterMark: 16384,
- needDrain: false,
- ending: false,
- ended: false,
- finished: false,
- decodeStrings: false,
- defaultEncoding: 'utf8',
- length: 0,
- writing: false,
- corked: 0,
- sync: false,
- bufferProcessing: false,
- onwrite: [Function],
- writecb: null,
- writelen: 0,
- bufferedRequest: null,
- lastBufferedRequest: null,
- pendingcb: 0,
- prefinished: false,
- errorEmitted: false,
- bufferedRequestCount: 0,
- corkedRequestsFree: [Object] },
- writable: true,
- allowHalfOpen: true,
- destroyed: false,
- _bytesDispatched: 390,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 4,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- _pendingResponseData: 0,
- _connectionKey: '6::::3000' },
- _server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 4,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- _pendingResponseData: 0,
- _connectionKey: '6::::3000' },
- _idleTimeout: 120000,
- _idleNext:
- TimersList {
- _idleNext: [Circular],
- _idlePrev: [Circular],
- _timer: [Object],
- _unrefed: true,
- msecs: 120000 },
- _idlePrev:
- TimersList {
- _idleNext: [Circular],
- _idlePrev: [Circular],
- _timer: [Object],
- _unrefed: true,
- msecs: 120000 },
- _idleStart: 10678,
- parser:
- HTTPParser {
- '0': [Function: parserOnHeaders],
- '1': [Function: parserOnHeadersComplete],
- '2': [Function: parserOnBody],
- '3': [Function: parserOnMessageComplete],
- '4': [Function: onParserExecute],
- _headers: [],
- _url: '',
- _consumed: true,
- socket: [Circular],
- incoming: [Circular],
- outgoing: null,
- maxHeaderPairs: 2000,
- onIncoming: [Function: parserOnIncoming] },
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage:
- ServerResponse {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: false,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: true,
- useChunkedEncodingByDefault: true,
- sendDate: true,
- _removedHeader: {},
- _contentLength: null,
- _hasBody: true,
- _trailer: '',
- finished: false,
- _headerSent: false,
- socket: [Circular],
- connection: [Circular],
- _header: null,
- _headers: [Object],
- _headerNames: [Object],
- _onPendingData: [Function: updateOutgoingData],
- req: [Circular],
- locals: [Object],
- _startAt: undefined,
- _startTime: undefined,
- writeHead: [Function: writeHead],
- __onFinished: [Object],
- end: [Function: end] },
- _peername: { address: '::ffff:127.0.0.1', family: 'IPv6', port: 37104 } },
- connection:
- Socket {
- connecting: false,
- _hadError: false,
- _handle:
- TCP {
- bytesRead: 1056,
- _externalStream: {},
- fd: 14,
- reading: true,
- owner: [Circular],
- onread: [Function: onread],
- onconnection: null,
- writeQueueSize: 0 },
- _parent: null,
- _host: null,
- _readableState:
- ReadableState {
- objectMode: false,
- highWaterMark: 16384,
- buffer: [Object],
- length: 0,
- pipes: null,
- pipesCount: 0,
- flowing: true,
- ended: false,
- endEmitted: false,
- reading: true,
- sync: false,
- needReadable: true,
- emittedReadable: false,
- readableListening: false,
- resumeScheduled: false,
- defaultEncoding: 'utf8',
- ranOut: false,
- awaitDrain: 0,
- readingMore: false,
- decoder: null,
- encoding: null },
- readable: true,
- domain: null,
- _events:
- { end: [Object],
- finish: [Function: onSocketFinish],
- _socketEnd: [Function: onSocketEnd],
- drain: [Object],
- timeout: [Function],
- error: [Object],
- close: [Object],
- data: [Function: socketOnData],
- resume: [Function: onSocketResume],
- pause: [Function: onSocketPause] },
- _eventsCount: 10,
- _maxListeners: undefined,
- _writableState:
- WritableState {
- objectMode: false,
- highWaterMark: 16384,
- needDrain: false,
- ending: false,
- ended: false,
- finished: false,
- decodeStrings: false,
- defaultEncoding: 'utf8',
- length: 0,
- writing: false,
- corked: 0,
- sync: false,
- bufferProcessing: false,
- onwrite: [Function],
- writecb: null,
- writelen: 0,
- bufferedRequest: null,
- lastBufferedRequest: null,
- pendingcb: 0,
- prefinished: false,
- errorEmitted: false,
- bufferedRequestCount: 0,
- corkedRequestsFree: [Object] },
- writable: true,
- allowHalfOpen: true,
- destroyed: false,
- _bytesDispatched: 390,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 4,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- _pendingResponseData: 0,
- _connectionKey: '6::::3000' },
- _server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 4,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- _pendingResponseData: 0,
- _connectionKey: '6::::3000' },
- _idleTimeout: 120000,
- _idleNext:
- TimersList {
- _idleNext: [Circular],
- _idlePrev: [Circular],
- _timer: [Object],
- _unrefed: true,
- msecs: 120000 },
- _idlePrev:
- TimersList {
- _idleNext: [Circular],
- _idlePrev: [Circular],
- _timer: [Object],
- _unrefed: true,
- msecs: 120000 },
- _idleStart: 10678,
- parser:
- HTTPParser {
- '0': [Function: parserOnHeaders],
- '1': [Function: parserOnHeadersComplete],
- '2': [Function: parserOnBody],
- '3': [Function: parserOnMessageComplete],
- '4': [Function: onParserExecute],
- _headers: [],
- _url: '',
- _consumed: true,
- socket: [Circular],
- incoming: [Circular],
- outgoing: null,
- maxHeaderPairs: 2000,
- onIncoming: [Function: parserOnIncoming] },
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage:
- ServerResponse {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: false,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: true,
- useChunkedEncodingByDefault: true,
- sendDate: true,
- _removedHeader: {},
- _contentLength: null,
- _hasBody: true,
- _trailer: '',
- finished: false,
- _headerSent: false,
- socket: [Circular],
- connection: [Circular],
- _header: null,
- _headers: [Object],
- _headerNames: [Object],
- _onPendingData: [Function: updateOutgoingData],
- req: [Circular],
- locals: [Object],
- _startAt: undefined,
- _startTime: undefined,
- writeHead: [Function: writeHead],
- __onFinished: [Object],
- end: [Function: end] },
- _peername: { address: '::ffff:127.0.0.1', family: 'IPv6', port: 37104 } },
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: true,
- headers:
- { host: 'localhost:3000',
- 'user-agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0',
- accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'accept-language': 'en-US,en;q=0.5',
- 'accept-encoding': 'gzip, deflate',
- referer: 'http://localhost:3000/profile',
- cookie: 'connect.sid=s%3AWXC3cWHwNmVnKhYToq7BjSkFTmIAc6ld.0%2BPRxLntESZYpDxvB7cA9FINDpk8B%2B%2FOZdzBI7bKO4s',
- connection: 'keep-alive',
- 'upgrade-insecure-requests': '1' },
- rawHeaders:
- [ 'Host',
- 'localhost:3000',
- 'User-Agent',
- 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0',
- 'Accept',
- 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'Accept-Language',
- 'en-US,en;q=0.5',
- 'Accept-Encoding',
- 'gzip, deflate',
- 'Referer',
- 'http://localhost:3000/profile',
- 'Cookie',
- 'connect.sid=s%3AWXC3cWHwNmVnKhYToq7BjSkFTmIAc6ld.0%2BPRxLntESZYpDxvB7cA9FINDpk8B%2B%2FOZdzBI7bKO4s',
- 'Connection',
- 'keep-alive',
- 'Upgrade-Insecure-Requests',
- '1' ],
- trailers: {},
- rawTrailers: [],
- upgrade: false,
- url: '/',
- method: 'GET',
- statusCode: null,
- statusMessage: null,
- client:
- Socket {
- connecting: false,
- _hadError: false,
- _handle:
- TCP {
- bytesRead: 1056,
- _externalStream: {},
- fd: 14,
- reading: true,
- owner: [Circular],
- onread: [Function: onread],
- onconnection: null,
- writeQueueSize: 0 },
- _parent: null,
- _host: null,
- _readableState:
- ReadableState {
- objectMode: false,
- highWaterMark: 16384,
- buffer: [Object],
- length: 0,
- pipes: null,
- pipesCount: 0,
- flowing: true,
- ended: false,
- endEmitted: false,
- reading: true,
- sync: false,
- needReadable: true,
- emittedReadable: false,
- readableListening: false,
- resumeScheduled: false,
- defaultEncoding: 'utf8',
- ranOut: false,
- awaitDrain: 0,
- readingMore: false,
- decoder: null,
- encoding: null },
- readable: true,
- domain: null,
- _events:
- { end: [Object],
- finish: [Function: onSocketFinish],
- _socketEnd: [Function: onSocketEnd],
- drain: [Object],
- timeout: [Function],
- error: [Object],
- close: [Object],
- data: [Function: socketOnData],
- resume: [Function: onSocketResume],
- pause: [Function: onSocketPause] },
- _eventsCount: 10,
- _maxListeners: undefined,
- _writableState:
- WritableState {
- objectMode: false,
- highWaterMark: 16384,
- needDrain: false,
- ending: false,
- ended: false,
- finished: false,
- decodeStrings: false,
- defaultEncoding: 'utf8',
- length: 0,
- writing: false,
- corked: 0,
- sync: false,
- bufferProcessing: false,
- onwrite: [Function],
- writecb: null,
- writelen: 0,
- bufferedRequest: null,
- lastBufferedRequest: null,
- pendingcb: 0,
- prefinished: false,
- errorEmitted: false,
- bufferedRequestCount: 0,
- corkedRequestsFree: [Object] },
- writable: true,
- allowHalfOpen: true,
- destroyed: false,
- _bytesDispatched: 390,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 4,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- _pendingResponseData: 0,
- _connectionKey: '6::::3000' },
- _server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 4,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- _pendingResponseData: 0,
- _connectionKey: '6::::3000' },
- _idleTimeout: 120000,
- _idleNext:
- TimersList {
- _idleNext: [Circular],
- _idlePrev: [Circular],
- _timer: [Object],
- _unrefed: true,
- msecs: 120000 },
- _idlePrev:
- TimersList {
- _idleNext: [Circular],
- _idlePrev: [Circular],
- _timer: [Object],
- _unrefed: true,
- msecs: 120000 },
- _idleStart: 10678,
- parser:
- HTTPParser {
- '0': [Function: parserOnHeaders],
- '1': [Function: parserOnHeadersComplete],
- '2': [Function: parserOnBody],
- '3': [Function: parserOnMessageComplete],
- '4': [Function: onParserExecute],
- _headers: [],
- _url: '',
- _consumed: true,
- socket: [Circular],
- incoming: [Circular],
- outgoing: null,
- maxHeaderPairs: 2000,
- onIncoming: [Function: parserOnIncoming] },
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage:
- ServerResponse {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: false,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: true,
- useChunkedEncodingByDefault: true,
- sendDate: true,
- _removedHeader: {},
- _contentLength: null,
- _hasBody: true,
- _trailer: '',
- finished: false,
- _headerSent: false,
- socket: [Circular],
- connection: [Circular],
- _header: null,
- _headers: [Object],
- _headerNames: [Object],
- _onPendingData: [Function: updateOutgoingData],
- req: [Circular],
- locals: [Object],
- _startAt: undefined,
- _startTime: undefined,
- writeHead: [Function: writeHead],
- __onFinished: [Object],
- end: [Function: end] },
- _peername: { address: '::ffff:127.0.0.1', family: 'IPv6', port: 37104 } },
- _consuming: false,
- _dumped: false,
- next: [Function: next],
- baseUrl: '/profile',
- originalUrl: '/profile',
- _parsedUrl:
- Url {
- protocol: null,
- slashes: null,
- auth: null,
- host: null,
- port: null,
- hostname: null,
- hash: null,
- search: null,
- query: null,
- pathname: '/',
- path: '/',
- href: '/',
- _raw: '/' },
- params: {},
- query: {},
- res:
- ServerResponse {
- domain: null,
- _events: { finish: [Object], end: [Function: onevent] },
- _eventsCount: 2,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: false,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: true,
- useChunkedEncodingByDefault: true,
- sendDate: true,
- _removedHeader: {},
- _contentLength: null,
- _hasBody: true,
- _trailer: '',
- finished: false,
- _headerSent: false,
- socket:
- Socket {
- connecting: false,
- _hadError: false,
- _handle: [Object],
- _parent: null,
- _host: null,
- _readableState: [Object],
- readable: true,
- domain: null,
- _events: [Object],
- _eventsCount: 10,
- _maxListeners: undefined,
- _writableState: [Object],
- writable: true,
- allowHalfOpen: true,
- destroyed: false,
- _bytesDispatched: 390,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: [Object],
- _server: [Object],
- _idleTimeout: 120000,
- _idleNext: [Object],
- _idlePrev: [Object],
- _idleStart: 10678,
- parser: [Object],
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage: [Circular],
- _peername: [Object] },
- connection:
- Socket {
- connecting: false,
- _hadError: false,
- _handle: [Object],
- _parent: null,
- _host: null,
- _readableState: [Object],
- readable: true,
- domain: null,
- _events: [Object],
- _eventsCount: 10,
- _maxListeners: undefined,
- _writableState: [Object],
- writable: true,
- allowHalfOpen: true,
- destroyed: false,
- _bytesDispatched: 390,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: [Object],
- _server: [Object],
- _idleTimeout: 120000,
- _idleNext: [Object],
- _idlePrev: [Object],
- _idleStart: 10678,
- parser: [Object],
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage: [Circular],
- _peername: [Object] },
- _header: null,
- _headers: { 'x-powered-by': 'Express' },
- _headerNames: { 'x-powered-by': 'X-Powered-By' },
- _onPendingData: [Function: updateOutgoingData],
- req: [Circular],
- locals: { success_msg: [], error_msg: [], error: [], user: [Object] },
- _startAt: undefined,
- _startTime: undefined,
- writeHead: [Function: writeHead],
- __onFinished: { [Function: listener] queue: [Object] },
- end: [Function: end] },
- _startAt: [ 7917, 975156719 ],
- _startTime: 2017-03-27T14:04:23.468Z,
- _remoteAddress: '::ffff:127.0.0.1',
- body: {},
- secret: undefined,
- cookies: { 'connect.sid': 's:WXC3cWHwNmVnKhYToq7BjSkFTmIAc6ld.0+PRxLntESZYpDxvB7cA9FINDpk8B+/OZdzBI7bKO4s' },
- signedCookies: {},
- _parsedOriginalUrl:
- Url {
- protocol: null,
- slashes: null,
- auth: null,
- host: null,
- port: null,
- hostname: null,
- hash: null,
- search: null,
- query: null,
- pathname: '/profile',
- path: '/profile',
- href: '/profile',
- _raw: '/profile' },
- sessionStore:
- MemoryStore {
- domain: null,
- _events:
- { disconnect: [Function: ondisconnect],
- connect: [Function: onconnect] },
- _eventsCount: 2,
- _maxListeners: undefined,
- sessions: { WXC3cWHwNmVnKhYToq7BjSkFTmIAc6ld: '{"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"flash":{"success":["You are now logged in"]},"passport":{"user":"58d69837d915d117d8ff2e29"}}' },
- generate: [Function] },
- sessionID: 'WXC3cWHwNmVnKhYToq7BjSkFTmIAc6ld',
- session:
- Session {
- cookie:
- { path: '/',
- _expires: null,
- originalMaxAge: null,
- httpOnly: true },
- flash: { success: [Object] },
- passport: { user: '58d69837d915d117d8ff2e29' } },
- _passport:
- { instance:
- Authenticator {
- _key: 'passport',
- _strategies: [Object],
- _serializers: [Object],
- _deserializers: [Object],
- _infoTransformers: [],
- _framework: [Object],
- _userProperty: 'user',
- Authenticator: [Function: Authenticator],
- Passport: [Function: Authenticator],
- Strategy: [Object],
- strategies: [Object] },
- session: { user: '58d69837d915d117d8ff2e29' } },
- user:
- { _id: 58d69837d915d117d8ff2e29,
- email: 'Charlotte@charlotte.com',
- username: 'Charlotte',
- password: '$2a$10$Uhmu1rd1Bq5eMFAIFU78h.fWF9E/.RkjeywSkKJMvaUnsDC0Av9OO',
- __v: 0 },
- _validationErrors: [],
- _asyncValidationErrors: [],
- validationErrors: [Function],
- asyncValidationErrors: [Function],
- getValidationResult: [Function],
- sanitizeBody: [Function],
- sanitizeParams: [Function],
- sanitizeQuery: [Function],
- sanitizeHeaders: [Function],
- sanitizeCookies: [Function],
- sanitize: [Function],
- checkBody: [Function],
- checkParams: [Function],
- checkQuery: [Function],
- checkHeaders: [Function],
- checkCookies: [Function],
- check: [Function],
- filter: [Function],
- assert: [Function],
- validate: [Function],
- flash: [Function: _flash],
- route:
- Route {
- path: '/',
- stack: [ [Object], [Object] ],
- methods: { get: true } } }" at path "_id" for model "User"
- at MongooseError.CastError (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/error/cast.js:26:11)
- at ObjectId.cast (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/schema/objectid.js:147:13)
- at ObjectId.castForQuery (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/schema/objectid.js:187:15)
- at cast (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/cast.js:229:32)
- at Query.cast (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/query.js:2915:12)
- at Query.find (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/query.js:1168:10)
- at Function.find (/home/jay/project/viva/project/Counselling/node_modules/mongoose/lib/model.js:1238:13)
- at Function.module.exports.getUsernameById (/home/jay/project/viva/project/Counselling/models/user.js:42:7)
- at /home/jay/project/viva/project/Counselling/routes/profile.js:10:7
- at Layer.handle [as handle_request] (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/layer.js:95:5)
- at next (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/route.js:131:13)
- at ensureAuthenticated (/home/jay/project/viva/project/Counselling/routes/profile.js:21:10)
- at Layer.handle [as handle_request] (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/layer.js:95:5)
- at next (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/route.js:131:13)
- at Route.dispatch (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/route.js:112:3)
- at Layer.handle [as handle_request] (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/layer.js:95:5)
- at /home/jay/project/viva/project/Counselling/node_modules/express/lib/router/index.js:277:22
- at Function.process_params (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/index.js:330:12)
- at next (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/index.js:271:10)
- at Function.handle (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/index.js:176:3)
- at router (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/index.js:46:12)
- at Layer.handle [as handle_request] (/home/jay/project/viva/project/Counselling/node_modules/express/lib/router/layer.js:95:5)
- npm ERR! Linux 4.8.0-41-generic
- npm ERR! argv "/home/jay/.nvm/versions/node/v6.10.0/bin/node" "/home/jay/.nvm/versions/node/v6.10.0/bin/npm" "start"
- npm ERR! node v6.10.0
- npm ERR! npm v3.10.10
- npm ERR! code ELIFECYCLE
- npm ERR! counselling@0.0.0 start: `node ./bin/www`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the counselling@0.0.0 start script 'node ./bin/www'.
- npm ERR! Make sure you have the latest version of node.js and npm installed.
- npm ERR! If you do, this is most likely a problem with the counselling package,
- npm ERR! not with npm itself.
- npm ERR! Tell the author that this fails on your system:
- npm ERR! node ./bin/www
- npm ERR! You can get information on how to open an issue for this project with:
- npm ERR! npm bugs counselling
- npm ERR! Or if that isn't available, you can get their info via:
- npm ERR! npm owner ls counselling
- npm ERR! There is likely additional logging output above.
- npm ERR! Please include the following file with any support request:
- npm ERR! /home/jay/project/viva/project/Counselling/npm-debug.log
- jay@jay-VirtualBox:~/project/viva/project/Counselling$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement