Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Marcuss-MacBook-Pro-2:~ Marcus$ cd Documents/GitHub/planes
- Marcuss-MacBook-Pro-2:planes Marcus$ ls
- app.js package-lock.json public
- node_modules package.json
- Marcuss-MacBook-Pro-2:planes Marcus$ node app
- Server started, port 8080.
- Connected, ID is 84
- Table query successful.
- Session query successful.
- IncomingMessage {
- _readableState:
- ReadableState {
- objectMode: false,
- highWaterMark: 16384,
- buffer: BufferList { head: null, tail: null, length: 0 },
- length: 0,
- pipes: null,
- pipesCount: 0,
- flowing: null,
- ended: false,
- endEmitted: false,
- reading: false,
- sync: true,
- needReadable: false,
- emittedReadable: false,
- readableListening: false,
- resumeScheduled: false,
- destroyed: false,
- defaultEncoding: 'utf8',
- 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 {
- 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: [Function: socketOnError],
- 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: true,
- 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: 0,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- keepAliveTimeout: 5000,
- _pendingResponseData: 0,
- maxHeadersCount: null,
- _connectionKey: '6::::8080',
- [Symbol(asyncId)]: 11 },
- _server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- keepAliveTimeout: 5000,
- _pendingResponseData: 0,
- maxHeadersCount: null,
- _connectionKey: '6::::8080',
- [Symbol(asyncId)]: 11 },
- _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: 14409,
- _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: [Circular],
- outgoing: null,
- maxHeaderPairs: 2000,
- onIncoming: [Function: bound parserOnIncoming] },
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage:
- ServerResponse {
- domain: null,
- _events: [Object],
- _eventsCount: 1,
- _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: false,
- socket: [Circular],
- connection: [Circular],
- _header: null,
- _onPendingData: [Function: bound updateOutgoingData],
- _sent100: false,
- _expect_continue: false,
- req: [Circular],
- locals: {},
- [Symbol(outHeadersKey)]: [Object] },
- [Symbol(asyncId)]: 81,
- [Symbol(bytesRead)]: 0,
- [Symbol(asyncId)]: 82,
- [Symbol(triggerAsyncId)]: 11 },
- 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: [Function: socketOnError],
- 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: true,
- 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: 0,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- keepAliveTimeout: 5000,
- _pendingResponseData: 0,
- maxHeadersCount: null,
- _connectionKey: '6::::8080',
- [Symbol(asyncId)]: 11 },
- _server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- keepAliveTimeout: 5000,
- _pendingResponseData: 0,
- maxHeadersCount: null,
- _connectionKey: '6::::8080',
- [Symbol(asyncId)]: 11 },
- _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: 14409,
- _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: [Circular],
- outgoing: null,
- maxHeaderPairs: 2000,
- onIncoming: [Function: bound parserOnIncoming] },
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage:
- ServerResponse {
- domain: null,
- _events: [Object],
- _eventsCount: 1,
- _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: false,
- socket: [Circular],
- connection: [Circular],
- _header: null,
- _onPendingData: [Function: bound updateOutgoingData],
- _sent100: false,
- _expect_continue: false,
- req: [Circular],
- locals: {},
- [Symbol(outHeadersKey)]: [Object] },
- [Symbol(asyncId)]: 81,
- [Symbol(bytesRead)]: 0,
- [Symbol(asyncId)]: 82,
- [Symbol(triggerAsyncId)]: 11 },
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: false,
- headers:
- { host: '127.0.0.1:8080',
- origin: 'http://127.0.0.1:8080',
- 'content-length': '0',
- connection: 'keep-alive',
- accept: '*/*',
- 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6',
- 'accept-language': 'en-gb',
- referer: 'http://127.0.0.1:8080/login.html?username=mmmm&password=999999',
- 'accept-encoding': 'gzip, deflate' },
- rawHeaders:
- [ 'Host',
- '127.0.0.1:8080',
- 'Origin',
- 'http://127.0.0.1:8080',
- 'Content-Length',
- '0',
- 'Connection',
- 'keep-alive',
- 'Accept',
- '*/*',
- 'User-Agent',
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6',
- 'Accept-Language',
- 'en-gb',
- 'Referer',
- 'http://127.0.0.1:8080/login.html?username=mmmm&password=999999',
- 'Accept-Encoding',
- 'gzip, deflate' ],
- trailers: {},
- rawTrailers: [],
- upgrade: false,
- url: '/api/login?username=mmmm&password=999999',
- method: 'POST',
- statusCode: null,
- statusMessage: null,
- client:
- 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: [Function: socketOnError],
- 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: true,
- 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: 0,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- keepAliveTimeout: 5000,
- _pendingResponseData: 0,
- maxHeadersCount: null,
- _connectionKey: '6::::8080',
- [Symbol(asyncId)]: 11 },
- _server:
- Server {
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _connections: 1,
- _handle: [Object],
- _usingSlaves: false,
- _slaves: [],
- _unref: false,
- allowHalfOpen: true,
- pauseOnConnect: false,
- httpAllowHalfOpen: false,
- timeout: 120000,
- keepAliveTimeout: 5000,
- _pendingResponseData: 0,
- maxHeadersCount: null,
- _connectionKey: '6::::8080',
- [Symbol(asyncId)]: 11 },
- _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: 14409,
- _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: [Circular],
- outgoing: null,
- maxHeaderPairs: 2000,
- onIncoming: [Function: bound parserOnIncoming] },
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage:
- ServerResponse {
- domain: null,
- _events: [Object],
- _eventsCount: 1,
- _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: false,
- socket: [Circular],
- connection: [Circular],
- _header: null,
- _onPendingData: [Function: bound updateOutgoingData],
- _sent100: false,
- _expect_continue: false,
- req: [Circular],
- locals: {},
- [Symbol(outHeadersKey)]: [Object] },
- [Symbol(asyncId)]: 81,
- [Symbol(bytesRead)]: 0,
- [Symbol(asyncId)]: 82,
- [Symbol(triggerAsyncId)]: 11 },
- _consuming: false,
- _dumped: false,
- next: [Function: next],
- baseUrl: '',
- originalUrl: '/api/login?username=mmmm&password=999999',
- _parsedUrl:
- Url {
- protocol: null,
- slashes: null,
- auth: null,
- host: null,
- port: null,
- hostname: null,
- hash: null,
- search: '?username=mmmm&password=999999',
- query: 'username=mmmm&password=999999',
- pathname: '/api/login',
- path: '/api/login?username=mmmm&password=999999',
- href: '/api/login?username=mmmm&password=999999',
- _raw: '/api/login?username=mmmm&password=999999' },
- params: {},
- query: { username: 'mmmm', password: '999999' },
- res:
- ServerResponse {
- domain: null,
- _events: { finish: [Function: bound resOnFinish] },
- _eventsCount: 1,
- _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: 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,
- _bytesDispatched: 0,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: [Object],
- _server: [Object],
- _idleTimeout: 120000,
- _idleNext: [Object],
- _idlePrev: [Object],
- _idleStart: 14409,
- _destroyed: false,
- parser: [Object],
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage: [Circular],
- [Symbol(asyncId)]: 81,
- [Symbol(bytesRead)]: 0,
- [Symbol(asyncId)]: 82,
- [Symbol(triggerAsyncId)]: 11 },
- 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: 0,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: [Object],
- _server: [Object],
- _idleTimeout: 120000,
- _idleNext: [Object],
- _idlePrev: [Object],
- _idleStart: 14409,
- _destroyed: false,
- parser: [Object],
- on: [Function: socketOnWrap],
- _paused: false,
- read: [Function],
- _consuming: true,
- _httpMessage: [Circular],
- [Symbol(asyncId)]: 81,
- [Symbol(bytesRead)]: 0,
- [Symbol(asyncId)]: 82,
- [Symbol(triggerAsyncId)]: 11 },
- _header: null,
- _onPendingData: [Function: bound updateOutgoingData],
- _sent100: false,
- _expect_continue: false,
- req: [Circular],
- locals: {},
- [Symbol(outHeadersKey)]: { 'x-powered-by': [Array] } },
- route:
- Route {
- path: '/api/login',
- stack: [ [Object] ],
- methods: { post: true } } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement