Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Using production database
- A.N.N.A v1.0.0 listening on 192.168.50.5:8080
- [2017-12-30T06:38:40.211Z #827c771c] Started POST /auth/login for 192.168.50.1
- Executing (default): SELECT `User`.*, `groups`.`id` AS `groups.id`, `groups`.`name` AS `groups.name`, `groups->UserGroup`.`groupId` AS `groups.UserGroup.groupId`, `groups->UserGroup`.`userId` AS `groups.UserGroup.userId` FROM (SELECT `User`.`id`, `User`.`username`, `User`.`email`, `User`.`password`, `User`.`createdAt`, `User`.`updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = 'root' LIMIT 1) AS `User` LEFT OUTER JOIN ( `UserGroup` AS `groups->UserGroup` INNER JOIN `Groups` AS `groups` ON `groups`.`id` = `groups->UserGroup`.`groupId`) ON `User`.`id` = `groups->UserGroup`.`userId`;
- unhandled exception :
- ServerResponse {
- domain: null,
- _events:
- { finish: [ [Function: bound resOnFinish], [Function: onevent] ],
- 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,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: null,
- _hasBody: true,
- _trailer: '',
- finished: false,
- _headerSent: true,
- socket:
- Socket {
- connecting: false,
- _hadError: false,
- _handle:
- TCP {
- reading: true,
- owner: [Circular],
- onread: [Function: onread],
- onconnection: null,
- writeQueueSize: 0,
- _consumed: true },
- _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,
- destroyed: false,
- defaultEncoding: 'utf8',
- awaitDrain: 0,
- readingMore: false,
- decoder: null,
- encoding: null },
- readable: true,
- domain: null,
- _events:
- { end: [Array],
- finish: [Function: onSocketFinish],
- _socketEnd: [Function: onSocketEnd],
- drain: [Array],
- timeout: [Function: socketOnTimeout],
- data: [Function: bound socketOnData],
- error: [Array],
- close: [Array],
- resume: [Function: onSocketResume],
- pause: [Function: onSocketPause] },
- _eventsCount: 10,
- _maxListeners: undefined,
- _writableState:
- WritableState {
- objectMode: false,
- highWaterMark: 16384,
- finalCalled: false,
- needDrain: false,
- ending: false,
- ended: false,
- finished: false,
- destroyed: false,
- decodeStrings: false,
- defaultEncoding: 'utf8',
- length: 0,
- writing: false,
- corked: 0,
- sync: false,
- bufferProcessing: false,
- onwrite: [Function: bound onwrite],
- writecb: null,
- writelen: 0,
- bufferedRequest: null,
- lastBufferedRequest: null,
- pendingcb: 0,
- prefinished: false,
- errorEmitted: false,
- bufferedRequestCount: 0,
- corkedRequestsFree: [Object] },
- writable: true,
- allowHalfOpen: true,
- _bytesDispatched: 637,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _connections: 2,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- keepAliveTimeout: 5000,
- _pendingResponseData: 0,
- maxHeadersCount: null,
- _connectionKey: '4:192.168.50.5:8080',
- [Symbol(asyncId)]: 15 },
- _server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _connections: 2,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- keepAliveTimeout: 5000,
- _pendingResponseData: 0,
- maxHeadersCount: null,
- _connectionKey: '4:192.168.50.5:8080',
- [Symbol(asyncId)]: 15 },
- _idleTimeout: 120000,
- _idleNext:
- TimersList {
- _idleNext: [Circular],
- _idlePrev: [Circular],
- _timer: [Object],
- _unrefed: true,
- msecs: 120000,
- nextTick: false },
- _idlePrev:
- TimersList {
- _idleNext: [Circular],
- _idlePrev: [Circular],
- _timer: [Object],
- _unrefed: true,
- msecs: 120000,
- nextTick: false },
- _idleStart: 7305,
- _destroyed: false,
- parser:
- HTTPParser {
- '0': [Function: parserOnHeaders],
- '1': [Function: parserOnHeadersComplete],
- '2': [Function: parserOnBody],
- '3': [Function: parserOnMessageComplete],
- '4': [Function: bound onParserExecute],
- _headers: [],
- _url: '',
- _consumed: true,
- socket: [Circular],
- incoming: [Object],
- outgoing: null,
- maxHeaderPairs: 2000,
- onIncoming: [Function: bound parserOnIncoming] },
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage: [Circular],
- _peername: { address: '192.168.50.1', family: 'IPv4', port: 55820 },
- [Symbol(asyncId)]: 36,
- [Symbol(bytesRead)]: 0,
- [Symbol(asyncId)]: 37,
- [Symbol(triggerAsyncId)]: 15 },
- connection:
- Socket {
- connecting: false,
- _hadError: false,
- _handle:
- TCP {
- reading: true,
- owner: [Circular],
- onread: [Function: onread],
- onconnection: null,
- writeQueueSize: 0,
- _consumed: true },
- _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,
- destroyed: false,
- defaultEncoding: 'utf8',
- awaitDrain: 0,
- readingMore: false,
- decoder: null,
- encoding: null },
- readable: true,
- domain: null,
- _events:
- { end: [Array],
- finish: [Function: onSocketFinish],
- _socketEnd: [Function: onSocketEnd],
- drain: [Array],
- timeout: [Function: socketOnTimeout],
- data: [Function: bound socketOnData],
- error: [Array],
- close: [Array],
- resume: [Function: onSocketResume],
- pause: [Function: onSocketPause] },
- _eventsCount: 10,
- _maxListeners: undefined,
- _writableState:
- WritableState {
- objectMode: false,
- highWaterMark: 16384,
- finalCalled: false,
- needDrain: false,
- ending: false,
- ended: false,
- finished: false,
- destroyed: false,
- decodeStrings: false,
- defaultEncoding: 'utf8',
- length: 0,
- writing: false,
- corked: 0,
- sync: false,
- bufferProcessing: false,
- onwrite: [Function: bound onwrite],
- writecb: null,
- writelen: 0,
- bufferedRequest: null,
- lastBufferedRequest: null,
- pendingcb: 0,
- prefinished: false,
- errorEmitted: false,
- bufferedRequestCount: 0,
- corkedRequestsFree: [Object] },
- writable: true,
- allowHalfOpen: true,
- _bytesDispatched: 637,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _connections: 2,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- keepAliveTimeout: 5000,
- _pendingResponseData: 0,
- maxHeadersCount: null,
- _connectionKey: '4:192.168.50.5:8080',
- [Symbol(asyncId)]: 15 },
- _server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _connections: 2,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- keepAliveTimeout: 5000,
- _pendingResponseData: 0,
- maxHeadersCount: null,
- _connectionKey: '4:192.168.50.5:8080',
- [Symbol(asyncId)]: 15 },
- _idleTimeout: 120000,
- _idleNext:
- TimersList {
- _idleNext: [Circular],
- _idlePrev: [Circular],
- _timer: [Object],
- _unrefed: true,
- msecs: 120000,
- nextTick: false },
- _idlePrev:
- TimersList {
- _idleNext: [Circular],
- _idlePrev: [Circular],
- _timer: [Object],
- _unrefed: true,
- msecs: 120000,
- nextTick: false },
- _idleStart: 7305,
- _destroyed: false,
- parser:
- HTTPParser {
- '0': [Function: parserOnHeaders],
- '1': [Function: parserOnHeadersComplete],
- '2': [Function: parserOnBody],
- '3': [Function: parserOnMessageComplete],
- '4': [Function: bound onParserExecute],
- _headers: [],
- _url: '',
- _consumed: true,
- socket: [Circular],
- incoming: [Object],
- outgoing: null,
- maxHeaderPairs: 2000,
- onIncoming: [Function: bound parserOnIncoming] },
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage: [Circular],
- _peername: { address: '192.168.50.1', family: 'IPv4', port: 55820 },
- [Symbol(asyncId)]: 36,
- [Symbol(bytesRead)]: 0,
- [Symbol(asyncId)]: 37,
- [Symbol(triggerAsyncId)]: 15 },
- _header: 'HTTP/1.1 401 Unauthorized\r\nX-DNS-Prefetch-Control: off\r\nX-Frame-Options: SAMEORIGIN\r\nStrict-Transport-Security: max-age=15552000; includeSubDomains\r\nX-Download-Options: noopen\r\nX-Content-Type-Options: nosniff\r\nX-XSS-Protection: 1; mode=block\r\nX-RateLimit-Limit: 100\r\nX-RateLimit-Remaining: 98\r\nAccess-Control-Allow-Origin: http://localhost:8080\r\nVary: Origin\r\nAccess-Control-Allow-Credentials: true\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 66\r\nETag: W/"42-KBEoYdJyE5soMuCpEXpOpSvC1X4"\r\nDate: Sat, 30 Dec 2017 06:38:40 GMT\r\nConnection: keep-alive\r\n\r\n',
- _onPendingData: [Function: bound updateOutgoingData],
- _sent100: false,
- _expect_continue: false,
- req:
- IncomingMessage {
- _readableState:
- ReadableState {
- objectMode: false,
- highWaterMark: 16384,
- buffer: [Object],
- length: 0,
- pipes: null,
- pipesCount: 0,
- flowing: true,
- ended: true,
- endEmitted: true,
- reading: false,
- sync: false,
- needReadable: false,
- emittedReadable: false,
- readableListening: false,
- resumeScheduled: false,
- destroyed: false,
- defaultEncoding: 'utf8',
- awaitDrain: 0,
- readingMore: false,
- decoder: null,
- encoding: null },
- readable: false,
- domain: null,
- _events: {},
- _eventsCount: 0,
- _maxListeners: undefined,
- 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,
- _bytesDispatched: 637,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: [Object],
- _server: [Object],
- _idleTimeout: 120000,
- _idleNext: [Object],
- _idlePrev: [Object],
- _idleStart: 7305,
- _destroyed: false,
- parser: [Object],
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage: [Circular],
- _peername: [Object],
- [Symbol(asyncId)]: 36,
- [Symbol(bytesRead)]: 0,
- [Symbol(asyncId)]: 37,
- [Symbol(triggerAsyncId)]: 15 },
- 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,
- _bytesDispatched: 637,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: [Object],
- _server: [Object],
- _idleTimeout: 120000,
- _idleNext: [Object],
- _idlePrev: [Object],
- _idleStart: 7305,
- _destroyed: false,
- parser: [Object],
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage: [Circular],
- _peername: [Object],
- [Symbol(asyncId)]: 36,
- [Symbol(bytesRead)]: 0,
- [Symbol(asyncId)]: 37,
- [Symbol(triggerAsyncId)]: 15 },
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: true,
- headers:
- { host: '192.168.50.5:8080',
- 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0',
- accept: 'application/json, text/plain, */*',
- 'accept-language': 'fr,fr-FR;q=0.5',
- 'accept-encoding': 'gzip, deflate',
- referer: 'http://localhost:8080/login',
- 'content-type': 'application/json;charset=utf-8',
- 'content-length': '46',
- origin: 'http://localhost:8080',
- cookie: 'connect.sid=s%3A35gukM9Z0iyd8mdtq8-28aUlndt-mGOw.XxFhDiZZ%2FENoY%2Ft%2BDKvxAssYG8zpcRQuBARhSJIjJsI',
- connection: 'keep-alive' },
- rawHeaders:
- [ 'Host',
- '192.168.50.5:8080',
- 'User-Agent',
- 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0',
- 'Accept',
- 'application/json, text/plain, */*',
- 'Accept-Language',
- 'fr,fr-FR;q=0.5',
- 'Accept-Encoding',
- 'gzip, deflate',
- 'Referer',
- 'http://localhost:8080/login',
- 'Content-Type',
- 'application/json;charset=utf-8',
- 'Content-Length',
- '46',
- 'Origin',
- 'http://localhost:8080',
- 'Cookie',
- 'connect.sid=s%3A35gukM9Z0iyd8mdtq8-28aUlndt-mGOw.XxFhDiZZ%2FENoY%2Ft%2BDKvxAssYG8zpcRQuBARhSJIjJsI',
- 'Connection',
- 'keep-alive' ],
- trailers: {},
- rawTrailers: [],
- upgrade: false,
- url: '/login',
- method: 'POST',
- statusCode: null,
- statusMessage: null,
- client:
- 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,
- _bytesDispatched: 637,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: [Object],
- _server: [Object],
- _idleTimeout: 120000,
- _idleNext: [Object],
- _idlePrev: [Object],
- _idleStart: 7305,
- _destroyed: false,
- parser: [Object],
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage: [Circular],
- _peername: [Object],
- [Symbol(asyncId)]: 36,
- [Symbol(bytesRead)]: 0,
- [Symbol(asyncId)]: 37,
- [Symbol(triggerAsyncId)]: 15 },
- _consuming: true,
- _dumped: false,
- next: [Function: next],
- baseUrl: '/auth',
- originalUrl: '/auth/login',
- _parsedUrl:
- Url {
- protocol: null,
- slashes: null,
- auth: null,
- host: null,
- port: null,
- hostname: null,
- hash: null,
- search: null,
- query: null,
- pathname: '/login',
- path: '/login',
- href: '/login',
- _raw: '/login' },
- params: {},
- query: {},
- res: [Circular],
- rateLimit: { limit: 100, current: 2, remaining: 98 },
- body: { username: 'root', password: 'OneServè2017' },
- _body: true,
- length: undefined,
- read: [Function],
- _parsedOriginalUrl:
- Url {
- protocol: null,
- slashes: null,
- auth: null,
- host: null,
- port: null,
- hostname: null,
- hash: null,
- search: null,
- query: null,
- pathname: '/auth/login',
- path: '/auth/login',
- href: '/auth/login',
- _raw: '/auth/login' },
- sessionStore:
- RedisStore {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- prefix: 'sess:',
- scanCount: 100,
- serializer: {},
- client: [Object],
- ttl: undefined,
- disableTTL: undefined,
- generate: [Function] },
- sessionID: '35gukM9Z0iyd8mdtq8-28aUlndt-mGOw',
- session: Session { cookie: [Object], auth: 1 },
- id: '827c771c-3629-490d-bf00-c7ac768a583e',
- _startAt: [ 5355, 208921518 ],
- _startTime: 2017-12-30T06:38:40.211Z,
- _remoteAddress: '192.168.50.1',
- route: Route { path: '/login', stack: [Array], methods: [Object] } },
- locals: {},
- boom:
- { wrap: [Function],
- create: [Function],
- badRequest: [Function],
- unauthorized: [Function],
- forbidden: [Function],
- notFound: [Function],
- methodNotAllowed: [Function],
- notAcceptable: [Function],
- proxyAuthRequired: [Function],
- clientTimeout: [Function],
- conflict: [Function],
- resourceGone: [Function],
- lengthRequired: [Function],
- preconditionFailed: [Function],
- entityTooLarge: [Function],
- uriTooLong: [Function],
- unsupportedMediaType: [Function],
- rangeNotSatisfiable: [Function],
- expectationFailed: [Function],
- badData: [Function],
- locked: [Function],
- preconditionRequired: [Function],
- tooManyRequests: [Function],
- illegal: [Function],
- internal: [Function],
- notImplemented: [Function],
- badGateway: [Function],
- serverUnavailable: [Function],
- serverTimeout: [Function],
- gatewayTimeout: [Function],
- badImplementation: [Function] },
- writeHead: [Function: writeHead],
- end: [Function: end],
- _startAt: [ 5355, 354330325 ],
- _startTime: 2017-12-30T06:38:40.357Z,
- __onFinished: { [Function: listener] queue: [ [Function: logRequest] ] },
- statusCode: 401,
- statusMessage: 'Unauthorized',
- [Symbol(outHeadersKey)]:
- { 'x-dns-prefetch-control': [ 'X-DNS-Prefetch-Control', 'off' ],
- 'x-frame-options': [ 'X-Frame-Options', 'SAMEORIGIN' ],
- 'strict-transport-security':
- [ 'Strict-Transport-Security',
- 'max-age=15552000; includeSubDomains' ],
- 'x-download-options': [ 'X-Download-Options', 'noopen' ],
- 'x-content-type-options': [ 'X-Content-Type-Options', 'nosniff' ],
- 'x-xss-protection': [ 'X-XSS-Protection', '1; mode=block' ],
- 'x-ratelimit-limit': [ 'X-RateLimit-Limit', 100 ],
- 'x-ratelimit-remaining': [ 'X-RateLimit-Remaining', 98 ],
- 'access-control-allow-origin': [ 'Access-Control-Allow-Origin', 'http://localhost:8080' ],
- vary: [ 'Vary', 'Origin' ],
- 'access-control-allow-credentials': [ 'Access-Control-Allow-Credentials', 'true' ],
- 'content-type': [ 'Content-Type', 'application/json; charset=utf-8' ],
- 'content-length': [ 'Content-Length', '66' ],
- etag: [ 'ETag', 'W/"42-KBEoYdJyE5soMuCpEXpOpSvC1X4"' ] } }
- npm ERR! code ELIFECYCLE
- npm ERR! errno 1
- npm ERR! anna-backend@1.0.0 start: `node ./app.js`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the anna-backend@1.0.0 start script.
- npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
- vagrant@vagrant:~/Anna/backend$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement