Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Something went wrong: { [Error: [object Object]]
- message:
- IncomingMessage {
- _readableState:
- ReadableState {
- objectMode: false,
- highWaterMark: 16384,
- buffer: [Object],
- 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: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- destroyed: true,
- _bytesDispatched: 206,
- _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: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- destroyed: true,
- _bytesDispatched: 206,
- _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',
- 'x-rate-limit': '2000',
- 'x-ratelimit-remaining': '1999',
- 'x-ratelimit-reset': '1474244135540',
- 'cache-control': 'no-cache',
- 'strict-transport-security': 'max-age=31536000',
- 'accept-ranges': 'bytes, bytes',
- via: '1.1 varnish, 1.1 varnish',
- 'fastly-debug-digest': '1f99b81f5b780d96fa3b8ab2568a45f8ffce8a42db13a7a4b972480c5356613a',
- 'content-length': '82',
- date: 'Mon, 19 Sep 2016 00:14:35 GMT',
- connection: 'close',
- 'x-served-by': 'cache-dfw1829-DFW, cache-lhr6342-LHR',
- 'x-cache': 'MISS, MISS',
- 'x-cache-hits': '0, 0',
- 'x-timer': 'S1474244075.469048,VS0,VE119',
- vary: 'origin',
- 'x-csrf-token': '425b78397f3298f3da2cb55d7fc15aebce13b0ad',
- 'set-cookie': [Object],
- 'access-control-allow-origin': '*',
- 'access-control-expose-headers': 'x-total-count, x-rate-limit, x-ratelimit-remaining, x-ratelimit-reset, link, x-cache, x-cache-hits, content-length, content-type, content-range, range',
- 'access-control-allow-methods': 'GET, HEAD, POST, PUT, DELETE, OPTIONS',
- 'access-control-allow-headers': 'content-length, content-type, authorization' },
- rawHeaders:
- [ 'Server',
- 'nginx/1.8.1',
- 'Content-Type',
- 'application/json; charset=utf-8',
- 'X-Rate-Limit',
- '2000',
- 'X-RateLimit-Remaining',
- '1999',
- 'X-RateLimit-Reset',
- '1474244135540',
- 'cache-control',
- 'no-cache',
- 'Strict-Transport-Security',
- 'max-age=31536000',
- 'Accept-Ranges',
- 'bytes',
- 'Via',
- '1.1 varnish',
- 'Fastly-Debug-Digest',
- '1f99b81f5b780d96fa3b8ab2568a45f8ffce8a42db13a7a4b972480c5356613a',
- 'Content-Length',
- '82',
- 'Accept-Ranges',
- 'bytes',
- 'Date',
- 'Mon, 19 Sep 2016 00:14:35 GMT',
- 'Via',
- '1.1 varnish',
- 'Connection',
- 'close',
- 'X-Served-By',
- 'cache-dfw1829-DFW, cache-lhr6342-LHR',
- 'X-Cache',
- 'MISS, MISS',
- 'X-Cache-Hits',
- '0, 0',
- 'X-Timer',
- 'S1474244075.469048,VS0,VE119',
- 'Vary',
- 'origin',
- 'X-CSRF-Token',
- '425b78397f3298f3da2cb55d7fc15aebce13b0ad',
- 'Set-Cookie',
- '__bcsrf=425b78397f3298f3da2cb55d7fc15aebce13b0ad; HttpOnly; secure; path=/; Expires=Wed, 19 Oct 2016 00:14:35 GMT;',
- 'Access-Control-Allow-Origin',
- '*',
- 'Access-Control-Expose-Headers',
- 'x-total-count, x-rate-limit, x-ratelimit-remaining, x-ratelimit-reset, link, x-cache, x-cache-hits, content-length, content-type, content-range, range',
- 'Access-Control-Allow-Methods',
- 'GET, HEAD, POST, PUT, DELETE, OPTIONS',
- 'Access-Control-Allow-Headers',
- 'content-length, content-type, authorization' ],
- trailers: {},
- rawTrailers: [],
- upgrade: false,
- url: '',
- method: null,
- statusCode: 401,
- statusMessage: 'Unauthorized',
- 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: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- destroyed: true,
- _bytesDispatched: 206,
- _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: 5,
- _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\nx-csrf-token: null\r\nhost: beam.pro\r\ncontent-type: application/x-www-form-urlencoded\r\naccept: application/json\r\ncontent-length: 19\r\nConnection: close\r\n\r\n',
- _headers: [Object],
- _headerNames: [Object],
- _onPendingData: null,
- agent: [Object],
- socketPath: undefined,
- method: 'POST',
- path: '/api/v1/users/login',
- _ended: true,
- 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=&password=',
- path: '/api/v1/users/login',
- _json: true,
- 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 username or password',
- statusCode: 401,
- error: 'Unauthorized' } } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement