Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- writable: false,
- allowHalfOpen: false,
- _bytesDispatched: 225,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage:
- ClientRequest {
- domain: null,
- _events: [Object],
- _eventsCount: 5,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: true,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: null,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket: [Circular],
- connection: [Circular],
- _header: 'POST /auth/login HTTP/1.1\r\nhost: api.laura-br.com\r\naccept: application/json\r\ncontent-type: application/json\r\ncontent-length: 75\r\nConnection: close\r\n\r\n',
- _onPendingData: [Function: noopPendingOutput],
- agent: [Object],
- socketPath: undefined,
- timeout: undefined,
- method: 'POST',
- path: '/auth/login',
- _ended: true,
- res: [Circular],
- aborted: undefined,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- [Symbol(outHeadersKey)]: [Object] },
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1,
- [Symbol(asyncId)]: 55,
- [Symbol(bytesRead)]: 811 },
- _consuming: true,
- _dumped: false,
- req:
- ClientRequest {
- domain: null,
- _events:
- { socket: [Function],
- response: [Function: bound ],
- error: [Function: bound ],
- drain: [Function],
- prefinish: [Function: requestOnPrefinish] },
- _eventsCount: 5,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: true,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: null,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: 'api.laura-br.com',
- npnProtocol: false,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'api.laura-br.com',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- _bytesDispatched: 225,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Circular],
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1,
- [Symbol(asyncId)]: 55,
- [Symbol(bytesRead)]: 811 },
- connection:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: 'api.laura-br.com',
- npnProtocol: false,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'api.laura-br.com',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- _bytesDispatched: 225,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Circular],
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1,
- [Symbol(asyncId)]: 55,
- [Symbol(bytesRead)]: 811 },
- _header: 'POST /auth/login HTTP/1.1\r\nhost: api.laura-br.com\r\naccept: application/json\r\ncontent-type: application/json\r\ncontent-length: 75\r\nConnection: close\r\n\r\n',
- _onPendingData: [Function: noopPendingOutput],
- agent:
- Agent {
- domain: null,
- _events: [Object],
- _eventsCount: 1,
- _maxListeners: undefined,
- defaultPort: 443,
- protocol: 'https:',
- options: [Object],
- requests: {},
- sockets: [Object],
- freeSockets: {},
- keepAliveMsecs: 1000,
- keepAlive: false,
- maxSockets: Infinity,
- maxFreeSockets: 256,
- maxCachedSessions: 100,
- _sessionCache: [Object] },
- socketPath: undefined,
- timeout: undefined,
- method: 'POST',
- path: '/auth/login',
- _ended: true,
- res: [Circular],
- aborted: undefined,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- [Symbol(outHeadersKey)]:
- { host: [Array],
- accept: [Array],
- 'content-type': [Array],
- 'content-length': [Array] } },
- request:
- Request {
- domain: null,
- _events:
- { error: [Function: bound ],
- complete: [Function: bound ],
- pipe: [Function],
- data: [Function],
- end: [Function] },
- _eventsCount: 5,
- _maxListeners: undefined,
- uri:
- Url {
- protocol: 'https:',
- slashes: true,
- auth: null,
- host: 'api.laura-br.com',
- port: 443,
- hostname: 'api.laura-br.com',
- hash: null,
- search: null,
- query: null,
- pathname: '/auth/login',
- path: '/auth/login',
- href: 'https://api.laura-br.com/auth/login' },
- method: 'POST',
- callback: [Function],
- readable: true,
- writable: true,
- explicitMethod: true,
- _qs:
- Querystring {
- request: [Circular],
- lib: [Object],
- useQuerystring: undefined,
- parseOptions: {},
- stringifyOptions: {} },
- _auth:
- Auth {
- request: [Circular],
- hasAuth: false,
- sentAuth: false,
- bearerToken: null,
- user: null,
- pass: null },
- _oauth: OAuth { request: [Circular], params: null },
- _multipart:
- Multipart {
- request: [Circular],
- boundary: '8284ef90-d689-47ea-9022-0f8421f2850e',
- chunked: false,
- body: null },
- _redirect:
- Redirect {
- request: [Circular],
- followRedirect: true,
- followRedirects: true,
- followAllRedirects: false,
- followOriginalHttpMethod: false,
- allowRedirect: [Function],
- maxRedirects: 10,
- redirects: [],
- redirectsFollowed: 0,
- removeRefererHeader: false },
- _tunnel:
- Tunnel {
- request: [Circular],
- proxyHeaderWhiteList: [Array],
- proxyHeaderExclusiveList: [] },
- headers:
- { accept: 'application/json',
- 'content-type': 'application/json',
- 'content-length': 75 },
- setHeader: [Function],
- hasHeader: [Function],
- getHeader: [Function],
- removeHeader: [Function],
- localAddress: undefined,
- pool: {},
- dests: [],
- __isRequestRequest: true,
- _callback: [Function],
- proxy: null,
- tunnel: true,
- setHost: true,
- originalCookieHeader: undefined,
- _disableCookies: true,
- _jar: undefined,
- port: 443,
- host: 'api.laura-br.com',
- path: '/auth/login',
- _json: true,
- body: '{"email":"chatbot@smarte.rs","password":"TUXLYfZ9oTjRnU8pDr45AbAVLTsiMRe7"}',
- httpModule:
- { Server: [Object],
- createServer: [Function: createServer],
- globalAgent: [Object],
- Agent: [Object],
- request: [Function: request],
- get: [Function: get] },
- agentClass: { [Function: Agent] super_: [Object] },
- agent:
- Agent {
- domain: null,
- _events: [Object],
- _eventsCount: 1,
- _maxListeners: undefined,
- defaultPort: 443,
- protocol: 'https:',
- options: [Object],
- requests: {},
- sockets: [Object],
- freeSockets: {},
- keepAliveMsecs: 1000,
- keepAlive: false,
- maxSockets: Infinity,
- maxFreeSockets: 256,
- maxCachedSessions: 100,
- _sessionCache: [Object] },
- _started: true,
- href: 'https://api.laura-br.com/auth/login',
- req:
- ClientRequest {
- domain: null,
- _events: [Object],
- _eventsCount: 5,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: true,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: null,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket: [Object],
- connection: [Object],
- _header: 'POST /auth/login HTTP/1.1\r\nhost: api.laura-br.com\r\naccept: application/json\r\ncontent-type: application/json\r\ncontent-length: 75\r\nConnection: close\r\n\r\n',
- _onPendingData: [Function: noopPendingOutput],
- agent: [Object],
- socketPath: undefined,
- timeout: undefined,
- method: 'POST',
- path: '/auth/login',
- _ended: true,
- res: [Circular],
- aborted: undefined,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- [Symbol(outHeadersKey)]: [Object] },
- ntick: true,
- response: [Circular],
- originalHost: 'api.laura-br.com',
- originalHostHeaderName: 'host',
- responseContent: [Circular],
- _destdata: true,
- _ended: true,
- _callbackCalled: true },
- toJSON: [Function: responseToJSON],
- caseless:
- Caseless {
- dict:
- { server: 'nginx/1.13.3',
- date: 'Fri, 31 Aug 2018 17:55:05 GMT',
- 'content-type': 'application/json',
- 'content-length': '16',
- connection: 'close',
- 'set-cookie': [Array],
- vary: 'Origin',
- 'strict-transport-security': 'max-age=63072000; includeSubdomains; preload',
- 'public-key-pins': 'pin-sha256="klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY="; pin-sha256="633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q="; max-age=2592000; includeSubDomains' } },
- read: [Function],
- body: { location: '/' } }
- (node:9171) UnhandledPromiseRejectionWarning: Error: Request failed with status code 404
- at createError (/Users/custodio/Documents/nissan/node_modules/axios/lib/core/createError.js:16:15)
- at settle (/Users/custodio/Documents/nissan/node_modules/axios/lib/core/settle.js:18:12)
- at IncomingMessage.handleStreamEnd (/Users/custodio/Documents/nissan/node_modules/axios/lib/adapters/http.js:201:11)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickCallback (internal/process/next_tick.js:180:9)
- (node:9171) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
- (node:9171) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
- ^C
- Leonardos-MacBook-Pro:nissan custodio$ node index.js
- App started on port 5000
- [POST] /testdrive
- (node:9183) UnhandledPromiseRejectionWarning: Error: Request failed with status code 404
- at createError (/Users/custodio/Documents/nissan/node_modules/axios/lib/core/createError.js:16:15)
- at settle (/Users/custodio/Documents/nissan/node_modules/axios/lib/core/settle.js:18:12)
- at IncomingMessage.handleStreamEnd (/Users/custodio/Documents/nissan/node_modules/axios/lib/adapters/http.js:201:11)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickCallback (internal/process/next_tick.js:180:9)
- (node:9183) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
- (node:9183) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
- ^C
- Leonardos-MacBook-Pro:nissan custodio$ node index.js
- App started on port 5000
- [POST] /testdrive
- { Error: Request failed with status code 404
- at createError (/Users/custodio/Documents/nissan/node_modules/axios/lib/core/createError.js:16:15)
- at settle (/Users/custodio/Documents/nissan/node_modules/axios/lib/core/settle.js:18:12)
- at IncomingMessage.handleStreamEnd (/Users/custodio/Documents/nissan/node_modules/axios/lib/adapters/http.js:201:11)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickCallback (internal/process/next_tick.js:180:9)
- config:
- { adapter: [Function: httpAdapter],
- transformRequest: { '0': [Function: transformRequest] },
- transformResponse: { '0': [Function: transformResponse] },
- timeout: 0,
- xsrfCookieName: 'XSRF-TOKEN',
- xsrfHeaderName: 'X-XSRF-TOKEN',
- maxContentLength: -1,
- validateStatus: [Function: validateStatus],
- headers:
- { Accept: 'application/json, text/plain, */*',
- 'User-Agent': 'axios/0.18.0' },
- method: 'post',
- url: 'https://api.laura-br.com/auth/login',
- data: '{"email":"chatbot@smarte.rs","password":"TUXLYfZ9oTjRnU8pDr45AbAVLTsiMRe7"}' },
- request:
- ClientRequest {
- domain: null,
- _events:
- { socket: [Function],
- abort: [Function],
- aborted: [Function],
- error: [Function],
- timeout: [Function],
- prefinish: [Function: requestOnPrefinish] },
- _eventsCount: 6,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: false,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: 0,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: 'api.laura-br.com',
- npnProtocol: false,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'api.laura-br.com',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- _bytesDispatched: 130,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Circular],
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1,
- [Symbol(asyncId)]: 32,
- [Symbol(bytesRead)]: 231 },
- connection:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: 'api.laura-br.com',
- npnProtocol: false,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'api.laura-br.com',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- _bytesDispatched: 130,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Circular],
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1,
- [Symbol(asyncId)]: 32,
- [Symbol(bytesRead)]: 231 },
- _header: 'GET / HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nUser-Agent: axios/0.18.0\r\nHost: api.laura-br.com\r\nConnection: close\r\n\r\n',
- _onPendingData: [Function: noopPendingOutput],
- agent:
- Agent {
- domain: null,
- _events: [Object],
- _eventsCount: 1,
- _maxListeners: undefined,
- defaultPort: 443,
- protocol: 'https:',
- options: [Object],
- requests: {},
- sockets: [Object],
- freeSockets: {},
- keepAliveMsecs: 1000,
- keepAlive: false,
- maxSockets: Infinity,
- maxFreeSockets: 256,
- maxCachedSessions: 100,
- _sessionCache: [Object] },
- socketPath: undefined,
- timeout: undefined,
- method: 'GET',
- path: '/',
- _ended: true,
- res:
- IncomingMessage {
- _readableState: [Object],
- readable: false,
- domain: null,
- _events: [Object],
- _eventsCount: 3,
- _maxListeners: undefined,
- socket: [Object],
- connection: [Object],
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: true,
- headers: [Object],
- rawHeaders: [Array],
- trailers: {},
- rawTrailers: [],
- upgrade: false,
- url: '',
- method: null,
- statusCode: 404,
- statusMessage: 'Not Found',
- client: [Object],
- _consuming: true,
- _dumped: false,
- req: [Circular],
- responseUrl: 'https://api.laura-br.com/',
- redirects: [],
- read: [Function] },
- aborted: undefined,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- _redirectable:
- Writable {
- _writableState: [Object],
- writable: true,
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _options: [Object],
- _redirectCount: 1,
- _redirects: [],
- _requestBodyLength: 75,
- _requestBodyBuffers: [],
- _onNativeResponse: [Function],
- _currentRequest: [Circular],
- _currentUrl: 'https://api.laura-br.com/',
- _isRedirect: true },
- [Symbol(outHeadersKey)]: { accept: [Array], 'user-agent': [Array], host: [Array] } },
- response:
- { status: 404,
- statusText: 'Not Found',
- headers:
- { server: 'nginx/1.13.3',
- date: 'Fri, 31 Aug 2018 17:56:25 GMT',
- 'content-type': 'text/plain; charset=utf-8',
- 'content-length': '19',
- connection: 'close',
- vary: 'Origin',
- 'x-content-type-options': 'nosniff' },
- config:
- { adapter: [Function: httpAdapter],
- transformRequest: [Object],
- transformResponse: [Object],
- timeout: 0,
- xsrfCookieName: 'XSRF-TOKEN',
- xsrfHeaderName: 'X-XSRF-TOKEN',
- maxContentLength: -1,
- validateStatus: [Function: validateStatus],
- headers: [Object],
- method: 'post',
- url: 'https://api.laura-br.com/auth/login',
- data: '{"email":"chatbot@smarte.rs","password":"TUXLYfZ9oTjRnU8pDr45AbAVLTsiMRe7"}' },
- request:
- ClientRequest {
- domain: null,
- _events: [Object],
- _eventsCount: 6,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: false,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: 0,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket: [Object],
- connection: [Object],
- _header: 'GET / HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nUser-Agent: axios/0.18.0\r\nHost: api.laura-br.com\r\nConnection: close\r\n\r\n',
- _onPendingData: [Function: noopPendingOutput],
- agent: [Object],
- socketPath: undefined,
- timeout: undefined,
- method: 'GET',
- path: '/',
- _ended: true,
- res: [Object],
- aborted: undefined,
- Leonardos-MacBook-Pro:nissan custodio$ node index.js
- App started on port 5000
- [POST] /testdrive
- { Error: Request failed with status code 404
- at createError (/Users/custodio/Documents/nissan/node_modules/axios/lib/core/createError.js:16:15)
- at settle (/Users/custodio/Documents/nissan/node_modules/axios/lib/core/settle.js:18:12)
- at IncomingMessage.handleStreamEnd (/Users/custodio/Documents/nissan/node_modules/axios/lib/adapters/http.js:201:11)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1064:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickCallback (internal/process/next_tick.js:180:9)
- config:
- { adapter: [Function: httpAdapter],
- transformRequest: { '0': [Function: transformRequest] },
- transformResponse: { '0': [Function: transformResponse] },
- timeout: 0,
- xsrfCookieName: 'XSRF-TOKEN',
- xsrfHeaderName: 'X-XSRF-TOKEN',
- maxContentLength: -1,
- validateStatus: [Function: validateStatus],
- headers:
- { Accept: 'application/json, text/plain, */*',
- 'User-Agent': 'axios/0.18.0' },
- method: 'post',
- url: 'https://api.laura-br.com/auth/login',
- data: '{"email":"chatbot@smarte.rs","password":"TUXLYfZ9oTjRnU8pDr45AbAVLTsiMRe7"}' },
- request:
- ClientRequest {
- domain: null,
- _events:
- { socket: [Function],
- abort: [Function],
- aborted: [Function],
- error: [Function],
- timeout: [Function],
- prefinish: [Function: requestOnPrefinish] },
- _eventsCount: 6,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: false,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: 0,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: 'api.laura-br.com',
- npnProtocol: false,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'api.laura-br.com',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- _bytesDispatched: 130,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Circular],
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1,
- [Symbol(asyncId)]: 32,
- [Symbol(bytesRead)]: 231 },
- connection:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: 'api.laura-br.com',
- npnProtocol: false,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'api.laura-br.com',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- _bytesDispatched: 130,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Circular],
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1,
- [Symbol(asyncId)]: 32,
- [Symbol(bytesRead)]: 231 },
- _header: 'GET / HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nUser-Agent: axios/0.18.0\r\nHost: api.laura-br.com\r\nConnection: close\r\n\r\n',
- _onPendingData: [Function: noopPendingOutput],
- agent:
- Agent {
- domain: null,
- _events: [Object],
- _eventsCount: 1,
- _maxListeners: undefined,
- defaultPort: 443,
- protocol: 'https:',
- options: [Object],
- requests: {},
- sockets: [Object],
- freeSockets: {},
- keepAliveMsecs: 1000,
- keepAlive: false,
- maxSockets: Infinity,
- maxFreeSockets: 256,
- maxCachedSessions: 100,
- _sessionCache: [Object] },
- socketPath: undefined,
- timeout: undefined,
- method: 'GET',
- path: '/',
- _ended: true,
- res:
- IncomingMessage {
- _readableState: [Object],
- readable: false,
- domain: null,
- _events: [Object],
- _eventsCount: 3,
- _maxListeners: undefined,
- socket: [Object],
- connection: [Object],
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: true,
- headers: [Object],
- rawHeaders: [Array],
- trailers: {},
- rawTrailers: [],
- upgrade: false,
- url: '',
- method: null,
- statusCode: 404,
- statusMessage: 'Not Found',
- client: [Object],
- _consuming: true,
- _dumped: false,
- req: [Circular],
- responseUrl: 'https://api.laura-br.com/',
- redirects: [],
- read: [Function] },
- aborted: undefined,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- _redirectable:
- Writable {
- _writableState: [Object],
- writable: true,
- domain: null,
- _events: [Object],
- _eventsCount: 2,
- _maxListeners: undefined,
- _options: [Object],
- _redirectCount: 1,
- _redirects: [],
- _requestBodyLength: 75,
- _requestBodyBuffers: [],
- _onNativeResponse: [Function],
- _currentRequest: [Circular],
- _currentUrl: 'https://api.laura-br.com/',
- _isRedirect: true },
- [Symbol(outHeadersKey)]: { accept: [Array], 'user-agent': [Array], host: [Array] } },
- response:
- { status: 404,
- statusText: 'Not Found',
- headers:
- { server: 'nginx/1.13.3',
- date: 'Fri, 31 Aug 2018 17:57:06 GMT',
- 'content-type': 'text/plain; charset=utf-8',
- 'content-length': '19',
- connection: 'close',
- vary: 'Origin',
- 'x-content-type-options': 'nosniff' },
- config:
- { adapter: [Function: httpAdapter],
- transformRequest: [Object],
- transformResponse: [Object],
- timeout: 0,
- xsrfCookieName: 'XSRF-TOKEN',
- xsrfHeaderName: 'X-XSRF-TOKEN',
- maxContentLength: -1,
- validateStatus: [Function: validateStatus],
- headers: [Object],
- method: 'post',
- url: 'https://api.laura-br.com/auth/login',
- data: '{"email":"chatbot@smarte.rs","password":"TUXLYfZ9oTjRnU8pDr45AbAVLTsiMRe7"}' },
- request:
- ClientRequest {
- domain: null,
- _events: [Object],
- _eventsCount: 6,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: false,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: 0,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket: [Object],
- connection: [Object],
- _header: 'GET / HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nUser-Agent: axios/0.18.0\r\nHost: api.laura-br.com\r\nConnection: close\r\n\r\n',
- _onPendingData: [Function: noopPendingOutput],
- agent: [Object],
- socketPath: undefined,
- timeout: undefined,
- method: 'GET',
- path: '/',
- _ended: true,
- res: [Object],
- aborted: undefined,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- _redirectable: [Object],
- [Symbol(outHeadersKey)]: [Object] },
- data: '404 page not found\n' } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement