Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { [Error: [object Object]]
- message:
- IncomingMessage {
- _readableState:
- ReadableState {
- objectMode: false,
- highWaterMark: 16384,
- buffer: [],
- length: 0,
- pipes: null,
- pipesCount: 0,
- flowing: true,
- ended: true,
- endEmitted: true,
- reading: false,
- sync: true,
- needReadable: false,
- emittedReadable: false,
- readableListening: false,
- resumeScheduled: false,
- defaultEncoding: 'utf8',
- ranOut: false,
- awaitDrain: 0,
- readingMore: false,
- decoder: null,
- encoding: null },
- readable: false,
- domain: null,
- _events:
- { end: [Object],
- close: [Object],
- data: [Function],
- error: [Function] },
- _eventsCount: 4,
- _maxListeners: undefined,
- socket:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: null,
- npnProtocol: undefined,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- _connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'beam.pro',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: 0,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- destroyed: true,
- bytesRead: 630,
- _bytesDispatched: 239,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Object],
- read: [Function],
- _consuming: true,
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1 },
- connection:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: null,
- npnProtocol: undefined,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- _connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'beam.pro',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: 0,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- destroyed: true,
- bytesRead: 630,
- _bytesDispatched: 239,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Object],
- read: [Function],
- _consuming: true,
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1 },
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: true,
- headers:
- { server: 'nginx/1.8.1',
- 'content-type': 'application/json; charset=utf-8',
- 'cache-control': 'no-cache, private',
- 'x-is-prerender': 'no',
- 'strict-transport-security': 'max-age=31536000',
- 'accept-ranges': 'bytes, bytes',
- via: '1.1 varnish, 1.1 varnish',
- 'fastly-debug-digest': '33c224136831630dc89117e1d7e56d75a8d79726fb3891ece6b11a4d550b36ea',
- 'content-length': '52',
- date: 'Sun, 17 Apr 2016 01:32:08 GMT',
- connection: 'close',
- 'x-served-by': 'cache-dfw1823-DFW, cache-sea1924-SEA',
- 'x-cache': 'MISS, MISS',
- 'x-cache-hits': '0, 0',
- 'x-timer': 'S1460856728.044525,VS0,VE87',
- vary: 'origin' },
- rawHeaders:
- [ 'Server',
- 'nginx/1.8.1',
- 'Content-Type',
- 'application/json; charset=utf-8',
- 'cache-control',
- 'no-cache, private',
- 'X-Is-Prerender',
- 'no',
- 'Strict-Transport-Security',
- 'max-age=31536000',
- 'Accept-Ranges',
- 'bytes',
- 'Via',
- '1.1 varnish',
- 'Fastly-Debug-Digest',
- '33c224136831630dc89117e1d7e56d75a8d79726fb3891ece6b11a4d550b36ea',
- 'Content-Length',
- '52',
- 'Accept-Ranges',
- 'bytes',
- 'Date',
- 'Sun, 17 Apr 2016 01:32:08 GMT',
- 'Via',
- '1.1 varnish',
- 'Connection',
- 'close',
- 'X-Served-By',
- 'cache-dfw1823-DFW, cache-sea1924-SEA',
- 'X-Cache',
- 'MISS, MISS',
- 'X-Cache-Hits',
- '0, 0',
- 'X-Timer',
- 'S1460856728.044525,VS0,VE87',
- 'Vary',
- 'origin' ],
- trailers: {},
- rawTrailers: [],
- upgrade: false,
- url: '',
- method: null,
- statusCode: 499,
- statusMessage: 'unknown',
- client:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: null,
- npnProtocol: undefined,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- _connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'beam.pro',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: 0,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- destroyed: true,
- bytesRead: 630,
- _bytesDispatched: 239,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Object],
- read: [Function],
- _consuming: true,
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1 },
- _consuming: true,
- _dumped: false,
- req:
- ClientRequest {
- domain: null,
- _events: [Object],
- _eventsCount: 4,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: true,
- sendDate: false,
- _removedHeader: [Object],
- _contentLength: null,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket: [Object],
- connection: [Object],
- _header: 'POST /api/v1/users/login HTTP/1.1\r\nUser-Agent: BeamClient/0.3.0 (JavaScript; Node.js v5.10.1)\r\nhost: beam.pro\r\ncontent-type: application/x-www-form-urlencoded\r\ncontent-length: 38\r\nConnection: close\r\n\r\n',
- _headers: [Object],
- _headerNames: [Object],
- _onPendingData: null,
- agent: [Object],
- socketPath: undefined,
- method: 'POST',
- path: '/api/v1/users/login',
- parser: null,
- res: [Circular] },
- request:
- Request {
- domain: null,
- _events: [Object],
- _eventsCount: 5,
- _maxListeners: undefined,
- method: 'post',
- headers: [Object],
- callback: [Function],
- readable: true,
- writable: true,
- explicitMethod: true,
- _qs: [Object],
- _auth: [Object],
- _oauth: [Object],
- _multipart: [Object],
- _redirect: [Object],
- _tunnel: [Object],
- setHeader: [Function],
- hasHeader: [Function],
- getHeader: [Function],
- removeHeader: [Function],
- localAddress: undefined,
- pool: {},
- dests: [],
- __isRequestRequest: true,
- _callback: [Function],
- uri: [Object],
- proxy: null,
- tunnel: true,
- setHost: true,
- originalCookieHeader: undefined,
- _jar: [Object],
- port: 443,
- host: 'beam.pro',
- body: 'username=acpixel&password=acptiger1%21',
- path: '/api/v1/users/login',
- httpModule: [Object],
- agentClass: [Object],
- agent: [Object],
- _started: true,
- href: 'https://beam.pro/api/v1/users/login',
- req: [Object],
- ntick: true,
- response: [Circular],
- originalHost: 'beam.pro',
- originalHostHeaderName: 'host',
- responseContent: [Circular],
- _destdata: true,
- _ended: true,
- _callbackCalled: true },
- toJSON: [Function: responseToJSON],
- caseless: Caseless { dict: [Object] },
- read: [Function],
- body: { message: 'Invalid two-factor code.', error: '2fa' } } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement