2019-06-04 12:44:52 [15110] [info]: Running at NODE_ENV is development 2019-06-04 12:44:56 [15110] [info]: Successfully connected to AMQP_URL at amqp://admin:admin@rmq.cc.cloud:5672 2019-06-04 12:57:34 [15361] [info]: Running at NODE_ENV is development 2019-06-04 12:57:39 [15361] [info]: Successfully connected to AMQP_URL at amqp://admin:admin@rmq.cc.cloud:5672 2019-06-04 12:57:49 [15361] [info]: => received 2019-06-04 12:58:00 [15361] [info]: [Error: Unable to login API:{ Error: connect ECONNREFUSED 127.0.0.1:8080] { at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14) errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 8080, 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, */*', 'Content-Type': 'application/json;charset=utf-8', 'User-Agent': 'axios/0.18.0', 'Content-Length': 58 }, method: 'post', url: 'http://localhost:8080/api/login', data: '{"email":"admin@coachingcloud.com","password":"admin@123"}' }, request: Writable { _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, 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, emitClose: true, autoDestroy: false, bufferedRequestCount: 0, corkedRequestsFree: { next: null, entry: null, finish: [Function: bound onCorkedFinish] } }, writable: true, _events: [Object: null prototype] { response: [Function: handleResponse], error: [Function: handleRequestError] }, _eventsCount: 2, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: 10485760, protocol: 'http:', path: '/api/login', method: 'post', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json;charset=utf-8', 'User-Agent': 'axios/0.18.0', 'Content-Length': 58 }, agent: undefined, auth: undefined, hostname: 'localhost', port: '8080', nativeProtocols: { 'http:': { _connectionListener: [Function: connectionListener], METHODS: [ 'ACL', 'BIND', 'CHECKOUT', 'CONNECT', 'COPY', 'DELETE', 'GET', 'HEAD', 'LINK', 'LOCK', 'M-SEARCH', 'MERGE', 'MKACTIVITY', 'MKCALENDAR', 'MKCOL', 'MOVE', 'NOTIFY', 'OPTIONS', 'PATCH', 'POST', 'PROPFIND', 'PROPPATCH', 'PURGE', 'PUT', 'REBIND', 'REPORT', 'SEARCH', 'SOURCE', 'SUBSCRIBE', 'TRACE', 'UNBIND', 'UNLINK', 'UNLOCK', 'UNSUBSCRIBE' ], STATUS_CODES: { '100': 'Continue', '101': 'Switching Protocols', '102': 'Processing', '103': 'Early Hints', '200': 'OK', '201': 'Created', '202': 'Accepted', '203': 'Non-Authoritative Information', '204': 'No Content', '205': 'Reset Content', '206': 'Partial Content', '207': 'Multi-Status', '208': 'Already Reported', '226': 'IM Used', '300': 'Multiple Choices', '301': 'Moved Permanently', '302': 'Found', '303': 'See Other', '304': 'Not Modified', '305': 'Use Proxy', '307': 'Temporary Redirect', '308': 'Permanent Redirect', '400': 'Bad Request', '401': 'Unauthorized', '402': 'Payment Required', '403': 'Forbidden', '404': 'Not Found', '405': 'Method Not Allowed', '406': 'Not Acceptable', '407': 'Proxy Authentication Required', '408': 'Request Timeout', '409': 'Conflict', '410': 'Gone', '411': 'Length Required', '412': 'Precondition Failed', '413': 'Payload Too Large', '414': 'URI Too Long', '415': 'Unsupported Media Type', '416': 'Range Not Satisfiable', '417': 'Expectation Failed', '418': "I'm a Teapot", '421': 'Misdirected Request', '422': 'Unprocessable Entity', '423': 'Locked', '424': 'Failed Dependency', '425': 'Unordered Collection', '426': 'Upgrade Required', '428': 'Precondition Required', '429': 'Too Many Requests', '431': 'Request Header Fields Too Large', '451': 'Unavailable For Legal Reasons', '500': 'Internal Server Error', '501': 'Not Implemented', '502': 'Bad Gateway', '503': 'Service Unavailable', '504': 'Gateway Timeout', '505': 'HTTP Version Not Supported', '506': 'Variant Also Negotiates', '507': 'Insufficient Storage', '508': 'Loop Detected', '509': 'Bandwidth Limit Exceeded', '510': 'Not Extended', '511': 'Network Authentication Required' }, Agent: { [Function: Agent] defaultMaxSockets: Infinity }, ClientRequest: [Function: ClientRequest], IncomingMessage: [Function: IncomingMessage], OutgoingMessage: [Function: OutgoingMessage], Server: [Function: Server], ServerResponse: [Function: ServerResponse], createServer: [Function: createServer], get: [Function: get], request: [Function: request], maxHeaderSize: [Getter], globalAgent: [Getter/Setter] }, 'https:': { Agent: [Function: Agent], globalAgent: Agent { _events: [Object], _eventsCount: 1, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object], requests: {}, sockets: {}, freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, maxCachedSessions: 100, _sessionCache: [Object] }, Server: [Function: Server], createServer: [Function: createServer], get: [Function: get], request: [Function: request] } }, pathname: '/api/login' }, _ended: false, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 58, _requestBodyBuffers: [ { data: , encoding: undefined } ], _onNativeResponse: [Function], _currentRequest: ClientRequest { _events: [Object: null prototype] { response: { [Function: bound onceWrapper] listener: [Function] }, socket: [Function], abort: [Function], aborted: [Function], error: [Function], timeout: [Function] }, _eventsCount: 6, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: false, _headerSent: true, socket: Socket { connecting: false, _hadError: true, _parent: null, _host: 'localhost', _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: null, pipesCount: 0, flowing: true, ended: false, endEmitted: false, reading: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, paused: false, emitClose: false, autoDestroy: false, destroyed: true, defaultEncoding: 'utf8', awaitDrain: 0, readingMore: false, decoder: null, encoding: null }, readable: false, _events: [Object: null prototype] { end: [Function: onReadableStreamEnd], connect: [ [Function], [Function], [Function] ], free: [Function: onFree], close: [ [Function: onClose], [Function: socketCloseListener] ], agentRemove: [Function: onRemove], drain: [Function: ondrain], error: [Function: socketErrorListener] }, _eventsCount: 7, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: true, decodeStrings: false, defaultEncoding: 'utf8', length: 262, writing: true, corked: 0, sync: false, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: [Function: bound onCorkedFinish], writelen: 262, bufferedRequest: null, lastBufferedRequest: null, pendingcb: 3, prefinished: false, errorEmitted: true, emitClose: false, autoDestroy: false, bufferedRequestCount: 0, corkedRequestsFree: { next: null, entry: null, finish: [Function: bound onCorkedFinish] } }, writable: false, allowHalfOpen: false, _sockname: null, _pendingData: [ { chunk: 'POST /api/login HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json;charset=utf-8\r\nUser-Agent: axios/0.18.0\r\nContent-Length: 58\r\nHost: localhost:8080\r\nConnection: close\r\n\r\n', encoding: 'latin1', isBuf: false, callback: [Function: nop], next: [Object] }, { chunk: , encoding: 'buffer', isBuf: true, callback: [Function], next: null }, allBuffers: false ], _pendingEncoding: '', server: null, _server: null, parser: null, _httpMessage: [Circular], [Symbol(asyncId)]: 153, [Symbol(kHandle)]: null, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, connection: Socket { connecting: false, _hadError: true, _parent: null, _host: 'localhost', _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: null, pipesCount: 0, flowing: true, ended: false, endEmitted: false, reading: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, paused: false, emitClose: false, autoDestroy: false, destroyed: true, defaultEncoding: 'utf8', awaitDrain: 0, readingMore: false, decoder: null, encoding: null }, readable: false, _events: [Object: null prototype] { end: [Function: onReadableStreamEnd], connect: [ [Function], [Function], [Function] ], free: [Function: onFree], close: [ [Function: onClose], [Function: socketCloseListener] ], agentRemove: [Function: onRemove], drain: [Function: ondrain], error: [Function: socketErrorListener] }, _eventsCount: 7, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: true, decodeStrings: false, defaultEncoding: 'utf8', length: 262, writing: true, corked: 0, sync: false, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: [Function: bound onCorkedFinish], writelen: 262, bufferedRequest: null, lastBufferedRequest: null, pendingcb: 3, prefinished: false, errorEmitted: true, emitClose: false, autoDestroy: false, bufferedRequestCount: 0, corkedRequestsFree: { next: null, entry: null, finish: [Function: bound onCorkedFinish] } }, writable: false, allowHalfOpen: false, _sockname: null, _pendingData: [ { chunk: 'POST /api/login HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json;charset=utf-8\r\nUser-Agent: axios/0.18.0\r\nContent-Length: 58\r\nHost: localhost:8080\r\nConnection: close\r\n\r\n', encoding: 'latin1', isBuf: false, callback: [Function: nop], next: [Object] }, { chunk: , encoding: 'buffer', isBuf: true, callback: [Function], next: null }, allBuffers: false ], _pendingEncoding: '', server: null, _server: null, parser: null, _httpMessage: [Circular], [Symbol(asyncId)]: 153, [Symbol(kHandle)]: null, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, _header: 'POST /api/login HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json;charset=utf-8\r\nUser-Agent: axios/0.18.0\r\nContent-Length: 58\r\nHost: localhost:8080\r\nConnection: close\r\n\r\n', _onPendingData: [Function: noopPendingOutput], agent: Agent { _events: [Object: null prototype] { free: [Function] }, _eventsCount: 1, _maxListeners: undefined, defaultPort: 80, protocol: 'http:', options: { path: null }, requests: {}, sockets: { 'localhost:8080:': [ [Socket] ] }, freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256 }, socketPath: undefined, timeout: undefined, method: 'POST', path: '/api/login', _ended: false, res: null, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, _redirectable: [Circular], [Symbol(isCorked)]: false, [Symbol(outHeadersKey)]: [Object: null prototype] { accept: [ 'Accept', 'application/json, text/plain, */*' ], 'content-type': [ 'Content-Type', 'application/json;charset=utf-8' ], 'user-agent': [ 'User-Agent', 'axios/0.18.0' ], 'content-length': [ 'Content-Length', 58 ], host: [ 'Host', 'localhost:8080' ] } }, _currentUrl: 'http://localhost:8080/api/login' }, response: undefined } at axios.request.catch.error (/Users/steven_lee/Documents/CoachingCloud/Projects/cc-automated-push-content/server/services/api_util.js:31:15) at processTicksAndRejections (internal/process/task_queues.js:86:5) [stack]: 'Error: Unable to login API:{ Error: connect ECONNREFUSED 127.0.0.1:8080\n at ' + 'TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)\n errno: ' + "'ECONNREFUSED',\n code: 'ECONNREFUSED',\n syscall: 'connect',\n address: " + "'127.0.0.1',\n port: 8080,\n config:\n { adapter: [Function: httpAdapter],\n " + " transformRequest: { '0': [Function: transformRequest] },\n " + "transformResponse: { '0': [Function: transformResponse] },\n timeout: 0,\n " + " xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n " + 'maxContentLength: -1,\n validateStatus: [Function: validateStatus],\n ' + "headers:\n { Accept: 'application/json, text/plain, */*',\n " + "'Content-Type': 'application/json;charset=utf-8',\n 'User-Agent': " + "'axios/0.18.0',\n 'Content-Length': 58 },\n method: 'post',\n url: " + "'http://localhost:8080/api/login',\n data: " + `'{"email":"admin@coachingcloud.com","password":"admin@123"}' },\n request:\n ` + 'Writable {\n _writableState:\n WritableState {\n objectMode: ' + 'false,\n highWaterMark: 16384,\n finalCalled: false,\n ' + 'needDrain: false,\n ending: false,\n ended: false,\n ' + 'finished: false,\n destroyed: false,\n decodeStrings: true,\n ' + " defaultEncoding: 'utf8',\n length: 0,\n writing: false,\n " + 'corked: 0,\n sync: true,\n bufferProcessing: false,\n ' + 'onwrite: [Function: bound onwrite],\n writecb: null,\n writelen: ' + '0,\n bufferedRequest: null,\n lastBufferedRequest: null,\n ' + 'pendingcb: 0,\n prefinished: false,\n errorEmitted: false,\n ' + 'emitClose: true,\n autoDestroy: false,\n bufferedRequestCount: 0,\n ' + ' corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: true,\n _events:\n [Object: null ' + 'prototype] { response: [Function: handleResponse], error: [Function: ' + 'handleRequestError] },\n _eventsCount: 2,\n _maxListeners: undefined,\n ' + ' _options:\n { maxRedirects: 21,\n maxBodyLength: 10485760,\n ' + "protocol: 'http:',\n path: '/api/login',\n method: 'post',\n " + "headers:\n { Accept: 'application/json, text/plain, */*',\n " + "'Content-Type': 'application/json;charset=utf-8',\n 'User-Agent': " + "'axios/0.18.0',\n 'Content-Length': 58 },\n agent: undefined,\n " + " auth: undefined,\n hostname: 'localhost',\n port: '8080',\n " + " nativeProtocols:\n { 'http:':\n { _connectionListener: " + "[Function: connectionListener],\n METHODS:\n [ 'ACL',\n" + " 'BIND',\n 'CHECKOUT',\n " + "'CONNECT',\n 'COPY',\n 'DELETE',\n " + " 'GET',\n 'HEAD',\n 'LINK',\n " + "'LOCK',\n 'M-SEARCH',\n 'MERGE',\n " + " 'MKACTIVITY',\n 'MKCALENDAR',\n 'MKCOL',\n " + " 'MOVE',\n 'NOTIFY',\n 'OPTIONS',\n " + " 'PATCH',\n 'POST',\n 'PROPFIND',\n " + " 'PROPPATCH',\n 'PURGE',\n 'PUT',\n " + " 'REBIND',\n 'REPORT',\n 'SEARCH',\n " + " 'SOURCE',\n 'SUBSCRIBE',\n " + "'TRACE',\n 'UNBIND',\n 'UNLINK',\n " + " 'UNLOCK',\n 'UNSUBSCRIBE' ],\n STATUS_CODES:\n " + " { '100': 'Continue',\n '101': 'Switching Protocols',\n " + " '102': 'Processing',\n '103': 'Early Hints',\n " + " '200': 'OK',\n '201': 'Created',\n " + "'202': 'Accepted',\n '203': 'Non-Authoritative Information',\n " + " '204': 'No Content',\n '205': 'Reset Content',\n " + " '206': 'Partial Content',\n '207': " + "'Multi-Status',\n '208': 'Already Reported',\n " + "'226': 'IM Used',\n '300': 'Multiple Choices',\n " + "'301': 'Moved Permanently',\n '302': 'Found',\n " + "'303': 'See Other',\n '304': 'Not Modified',\n " + "'305': 'Use Proxy',\n '307': 'Temporary Redirect',\n " + " '308': 'Permanent Redirect',\n '400': 'Bad Request',\n " + " '401': 'Unauthorized',\n '402': 'Payment Required',\n " + " '403': 'Forbidden',\n '404': 'Not Found',\n " + " '405': 'Method Not Allowed',\n '406': 'Not " + "Acceptable',\n '407': 'Proxy Authentication Required',\n " + " '408': 'Request Timeout',\n '409': 'Conflict',\n " + " '410': 'Gone',\n '411': 'Length Required',\n " + " '412': 'Precondition Failed',\n '413': 'Payload Too Large',\n" + " '414': 'URI Too Long',\n '415': 'Unsupported " + "Media Type',\n '416': 'Range Not Satisfiable',\n " + `'417': 'Expectation Failed',\n '418': "I'm a Teapot",\n ` + " '421': 'Misdirected Request',\n '422': 'Unprocessable " + "Entity',\n '423': 'Locked',\n '424': 'Failed " + "Dependency',\n '425': 'Unordered Collection',\n " + "'426': 'Upgrade Required',\n '428': 'Precondition Required',\n " + " '429': 'Too Many Requests',\n '431': 'Request " + "Header Fields Too Large',\n '451': 'Unavailable For Legal " + "Reasons',\n '500': 'Internal Server Error',\n " + "'501': 'Not Implemented',\n '502': 'Bad Gateway',\n " + " '503': 'Service Unavailable',\n '504': 'Gateway Timeout',\n " + " '505': 'HTTP Version Not Supported',\n '506': " + "'Variant Also Negotiates',\n '507': 'Insufficient Storage',\n " + " '508': 'Loop Detected',\n '509': 'Bandwidth Limit " + "Exceeded',\n '510': 'Not Extended',\n '511': " + "'Network Authentication Required' },\n Agent: { [Function: Agent] " + 'defaultMaxSockets: Infinity },\n ClientRequest: [Function: ' + 'ClientRequest],\n IncomingMessage: [Function: IncomingMessage],\n ' + ' OutgoingMessage: [Function: OutgoingMessage],\n Server: ' + '[Function: Server],\n ServerResponse: [Function: ServerResponse],\n ' + ' createServer: [Function: createServer],\n get: ' + '[Function: get],\n request: [Function: request],\n ' + 'maxHeaderSize: [Getter],\n globalAgent: [Getter/Setter] },\n ' + " 'https:':\n { Agent: [Function: Agent],\n " + 'globalAgent:\n Agent {\n _events: [Object],\n ' + ' _eventsCount: 1,\n _maxListeners: undefined,\n ' + " defaultPort: 443,\n protocol: 'https:',\n " + ' options: [Object],\n requests: {},\n sockets: ' + '{},\n freeSockets: {},\n keepAliveMsecs: 1000,\n ' + ' keepAlive: false,\n maxSockets: Infinity,\n ' + ' maxFreeSockets: 256,\n maxCachedSessions: 100,\n ' + ' _sessionCache: [Object] },\n Server: [Function: Server],\n' + ' createServer: [Function: createServer],\n get: ' + '[Function: get],\n request: [Function: request] } },\n ' + "pathname: '/api/login' },\n _ended: false,\n _ending: true,\n " + '_redirectCount: 0,\n _redirects: [],\n _requestBodyLength: 58,\n ' + '_requestBodyBuffers:\n [ { data:\n ,\n ' + ' encoding: undefined } ],\n _onNativeResponse: [Function],\n ' + '_currentRequest:\n ClientRequest {\n _events:\n [Object: null ' + 'prototype] {\n response: { [Function: bound onceWrapper] listener: ' + '[Function] },\n socket: [Function],\n abort: [Function],\n ' + ' aborted: [Function],\n error: [Function],\n timeout: ' + '[Function] },\n _eventsCount: 6,\n _maxListeners: undefined,\n ' + ' outputData: [],\n outputSize: 0,\n writable: true,\n ' + '_last: true,\n chunkedEncoding: false,\n shouldKeepAlive: false,\n ' + ' useChunkedEncodingByDefault: true,\n sendDate: false,\n ' + '_removedConnection: false,\n _removedContLen: false,\n _removedTE: ' + 'false,\n _contentLength: null,\n _hasBody: true,\n _trailer: ' + "'',\n finished: false,\n _headerSent: true,\n socket:\n " + ' Socket {\n connecting: false,\n _hadError: true,\n ' + " _parent: null,\n _host: 'localhost',\n _readableState:\n " + ' ReadableState {\n objectMode: false,\n ' + 'highWaterMark: 16384,\n buffer: BufferList { head: null, tail: ' + 'null, length: 0 },\n length: 0,\n pipes: null,\n ' + ' pipesCount: 0,\n flowing: true,\n ended: false,\n ' + ' endEmitted: false,\n reading: true,\n ' + 'sync: false,\n needReadable: true,\n emittedReadable: ' + 'false,\n readableListening: false,\n resumeScheduled: ' + 'false,\n paused: false,\n emitClose: false,\n ' + ' autoDestroy: false,\n destroyed: true,\n ' + "defaultEncoding: 'utf8',\n awaitDrain: 0,\n " + 'readingMore: false,\n decoder: null,\n encoding: null ' + '},\n readable: false,\n _events:\n [Object: null ' + 'prototype] {\n end: [Function: onReadableStreamEnd],\n ' + 'connect: [ [Function], [Function], [Function] ],\n free: ' + '[Function: onFree],\n close: [ [Function: onClose], [Function: ' + 'socketCloseListener] ],\n agentRemove: [Function: onRemove],\n ' + ' drain: [Function: ondrain],\n error: [Function: ' + 'socketErrorListener] },\n _eventsCount: 7,\n _maxListeners: ' + 'undefined,\n _writableState:\n WritableState {\n ' + ' objectMode: false,\n highWaterMark: 16384,\n ' + 'finalCalled: false,\n needDrain: false,\n ending: ' + 'false,\n ended: false,\n finished: false,\n ' + ' destroyed: true,\n decodeStrings: false,\n ' + "defaultEncoding: 'utf8',\n length: 262,\n writing: " + 'true,\n corked: 0,\n sync: false,\n ' + 'bufferProcessing: false,\n onwrite: [Function: bound onwrite],\n ' + ' writecb: [Function: bound onCorkedFinish],\n writelen: ' + '262,\n bufferedRequest: null,\n lastBufferedRequest: ' + 'null,\n pendingcb: 3,\n prefinished: false,\n ' + ' errorEmitted: true,\n emitClose: false,\n ' + 'autoDestroy: false,\n bufferedRequestCount: 0,\n ' + 'corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: false,\n allowHalfOpen: ' + 'false,\n _sockname: null,\n _pendingData:\n [ { ' + "chunk:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n encoding: 'latin1',\n isBuf: " + 'false,\n callback: [Function: nop],\n next: ' + '[Object] },\n { chunk:\n ,\n ' + " encoding: 'buffer',\n isBuf: true,\n " + 'callback: [Function],\n next: null },\n allBuffers: ' + "false ],\n _pendingEncoding: '',\n server: null,\n " + '_server: null,\n parser: null,\n _httpMessage: [Circular],\n ' + ' [Symbol(asyncId)]: 153,\n [Symbol(kHandle)]: null,\n ' + ' [Symbol(lastWriteQueueSize)]: 0,\n [Symbol(timeout)]: null,\n ' + ' [Symbol(kBytesRead)]: 0,\n [Symbol(kBytesWritten)]: 0 },\n ' + 'connection:\n Socket {\n connecting: false,\n ' + "_hadError: true,\n _parent: null,\n _host: 'localhost',\n " + ' _readableState:\n ReadableState {\n objectMode: ' + 'false,\n highWaterMark: 16384,\n buffer: BufferList { ' + 'head: null, tail: null, length: 0 },\n length: 0,\n ' + 'pipes: null,\n pipesCount: 0,\n flowing: true,\n ' + ' ended: false,\n endEmitted: false,\n reading: ' + 'true,\n sync: false,\n needReadable: true,\n ' + ' emittedReadable: false,\n readableListening: false,\n ' + ' resumeScheduled: false,\n paused: false,\n emitClose: ' + 'false,\n autoDestroy: false,\n destroyed: true,\n ' + " defaultEncoding: 'utf8',\n awaitDrain: 0,\n " + 'readingMore: false,\n decoder: null,\n encoding: null ' + '},\n readable: false,\n _events:\n [Object: null ' + 'prototype] {\n end: [Function: onReadableStreamEnd],\n ' + 'connect: [ [Function], [Function], [Function] ],\n free: ' + '[Function: onFree],\n close: [ [Function: onClose], [Function: ' + 'socketCloseListener] ],\n agentRemove: [Function: onRemove],\n ' + ' drain: [Function: ondrain],\n error: [Function: ' + 'socketErrorListener] },\n _eventsCount: 7,\n _maxListeners: ' + 'undefined,\n _writableState:\n WritableState {\n ' + ' objectMode: false,\n highWaterMark: 16384,\n ' + 'finalCalled: false,\n needDrain: false,\n ending: ' + 'false,\n ended: false,\n finished: false,\n ' + ' destroyed: true,\n decodeStrings: false,\n ' + "defaultEncoding: 'utf8',\n length: 262,\n writing: " + 'true,\n corked: 0,\n sync: false,\n ' + 'bufferProcessing: false,\n onwrite: [Function: bound onwrite],\n ' + ' writecb: [Function: bound onCorkedFinish],\n writelen: ' + '262,\n bufferedRequest: null,\n lastBufferedRequest: ' + 'null,\n pendingcb: 3,\n prefinished: false,\n ' + ' errorEmitted: true,\n emitClose: false,\n ' + 'autoDestroy: false,\n bufferedRequestCount: 0,\n ' + 'corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: false,\n allowHalfOpen: ' + 'false,\n _sockname: null,\n _pendingData:\n [ { ' + "chunk:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n encoding: 'latin1',\n isBuf: " + 'false,\n callback: [Function: nop],\n next: ' + '[Object] },\n { chunk:\n ,\n ' + " encoding: 'buffer',\n isBuf: true,\n " + 'callback: [Function],\n next: null },\n allBuffers: ' + "false ],\n _pendingEncoding: '',\n server: null,\n " + '_server: null,\n parser: null,\n _httpMessage: [Circular],\n ' + ' [Symbol(asyncId)]: 153,\n [Symbol(kHandle)]: null,\n ' + ' [Symbol(lastWriteQueueSize)]: 0,\n [Symbol(timeout)]: null,\n ' + ' [Symbol(kBytesRead)]: 0,\n [Symbol(kBytesWritten)]: 0 },\n ' + "_header:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n _onPendingData: [Function: noopPendingOutput],\n " + 'agent:\n Agent {\n _events: [Object: null prototype] { free: ' + '[Function] },\n _eventsCount: 1,\n _maxListeners: undefined,\n' + " defaultPort: 80,\n protocol: 'http:',\n options: " + '{ path: null },\n requests: {},\n sockets: { ' + "'localhost:8080:': [ [Socket] ] },\n freeSockets: {},\n " + 'keepAliveMsecs: 1000,\n keepAlive: false,\n maxSockets: ' + 'Infinity,\n maxFreeSockets: 256 },\n socketPath: undefined,\n ' + " timeout: undefined,\n method: 'POST',\n path: '/api/login',\n " + ' _ended: false,\n res: null,\n aborted: false,\n ' + 'timeoutCb: null,\n upgradeOrConnect: false,\n parser: null,\n ' + ' maxHeadersCount: null,\n _redirectable: [Circular],\n ' + '[Symbol(isCorked)]: false,\n [Symbol(outHeadersKey)]:\n [Object: ' + "null prototype] {\n accept: [ 'Accept', 'application/json, " + "text/plain, */*' ],\n 'content-type': [ 'Content-Type', " + "'application/json;charset=utf-8' ],\n 'user-agent': [ 'User-Agent', " + "'axios/0.18.0' ],\n 'content-length': [ 'Content-Length', 58 ],\n " + " host: [ 'Host', 'localhost:8080' ] } },\n _currentUrl: " + "'http://localhost:8080/api/login' },\n response: undefined }\n at " + 'axios.request.catch.error ' + '(/Users/steven_lee/Documents/CoachingCloud/Projects/cc-automated-push-content/server/services/api_util.js:31:15)\n' + ' at processTicksAndRejections (internal/process/task_queues.js:86:5)', [message]: 'Unable to login API:{ Error: connect ECONNREFUSED 127.0.0.1:8080\n at ' + 'TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)\n errno: ' + "'ECONNREFUSED',\n code: 'ECONNREFUSED',\n syscall: 'connect',\n address: " + "'127.0.0.1',\n port: 8080,\n config:\n { adapter: [Function: httpAdapter],\n " + " transformRequest: { '0': [Function: transformRequest] },\n " + "transformResponse: { '0': [Function: transformResponse] },\n timeout: 0,\n " + " xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n " + 'maxContentLength: -1,\n validateStatus: [Function: validateStatus],\n ' + "headers:\n { Accept: 'application/json, text/plain, */*',\n " + "'Content-Type': 'application/json;charset=utf-8',\n 'User-Agent': " + "'axios/0.18.0',\n 'Content-Length': 58 },\n method: 'post',\n url: " + "'http://localhost:8080/api/login',\n data: " + `'{"email":"admin@coachingcloud.com","password":"admin@123"}' },\n request:\n ` + 'Writable {\n _writableState:\n WritableState {\n objectMode: ' + 'false,\n highWaterMark: 16384,\n finalCalled: false,\n ' + 'needDrain: false,\n ending: false,\n ended: false,\n ' + 'finished: false,\n destroyed: false,\n decodeStrings: true,\n ' + " defaultEncoding: 'utf8',\n length: 0,\n writing: false,\n " + 'corked: 0,\n sync: true,\n bufferProcessing: false,\n ' + 'onwrite: [Function: bound onwrite],\n writecb: null,\n writelen: ' + '0,\n bufferedRequest: null,\n lastBufferedRequest: null,\n ' + 'pendingcb: 0,\n prefinished: false,\n errorEmitted: false,\n ' + 'emitClose: true,\n autoDestroy: false,\n bufferedRequestCount: 0,\n ' + ' corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: true,\n _events:\n [Object: null ' + 'prototype] { response: [Function: handleResponse], error: [Function: ' + 'handleRequestError] },\n _eventsCount: 2,\n _maxListeners: undefined,\n ' + ' _options:\n { maxRedirects: 21,\n maxBodyLength: 10485760,\n ' + "protocol: 'http:',\n path: '/api/login',\n method: 'post',\n " + "headers:\n { Accept: 'application/json, text/plain, */*',\n " + "'Content-Type': 'application/json;charset=utf-8',\n 'User-Agent': " + "'axios/0.18.0',\n 'Content-Length': 58 },\n agent: undefined,\n " + " auth: undefined,\n hostname: 'localhost',\n port: '8080',\n " + " nativeProtocols:\n { 'http:':\n { _connectionListener: " + "[Function: connectionListener],\n METHODS:\n [ 'ACL',\n" + " 'BIND',\n 'CHECKOUT',\n " + "'CONNECT',\n 'COPY',\n 'DELETE',\n " + " 'GET',\n 'HEAD',\n 'LINK',\n " + "'LOCK',\n 'M-SEARCH',\n 'MERGE',\n " + " 'MKACTIVITY',\n 'MKCALENDAR',\n 'MKCOL',\n " + " 'MOVE',\n 'NOTIFY',\n 'OPTIONS',\n " + " 'PATCH',\n 'POST',\n 'PROPFIND',\n " + " 'PROPPATCH',\n 'PURGE',\n 'PUT',\n " + " 'REBIND',\n 'REPORT',\n 'SEARCH',\n " + " 'SOURCE',\n 'SUBSCRIBE',\n " + "'TRACE',\n 'UNBIND',\n 'UNLINK',\n " + " 'UNLOCK',\n 'UNSUBSCRIBE' ],\n STATUS_CODES:\n " + " { '100': 'Continue',\n '101': 'Switching Protocols',\n " + " '102': 'Processing',\n '103': 'Early Hints',\n " + " '200': 'OK',\n '201': 'Created',\n " + "'202': 'Accepted',\n '203': 'Non-Authoritative Information',\n " + " '204': 'No Content',\n '205': 'Reset Content',\n " + " '206': 'Partial Content',\n '207': " + "'Multi-Status',\n '208': 'Already Reported',\n " + "'226': 'IM Used',\n '300': 'Multiple Choices',\n " + "'301': 'Moved Permanently',\n '302': 'Found',\n " + "'303': 'See Other',\n '304': 'Not Modified',\n " + "'305': 'Use Proxy',\n '307': 'Temporary Redirect',\n " + " '308': 'Permanent Redirect',\n '400': 'Bad Request',\n " + " '401': 'Unauthorized',\n '402': 'Payment Required',\n " + " '403': 'Forbidden',\n '404': 'Not Found',\n " + " '405': 'Method Not Allowed',\n '406': 'Not " + "Acceptable',\n '407': 'Proxy Authentication Required',\n " + " '408': 'Request Timeout',\n '409': 'Conflict',\n " + " '410': 'Gone',\n '411': 'Length Required',\n " + " '412': 'Precondition Failed',\n '413': 'Payload Too Large',\n" + " '414': 'URI Too Long',\n '415': 'Unsupported " + "Media Type',\n '416': 'Range Not Satisfiable',\n " + `'417': 'Expectation Failed',\n '418': "I'm a Teapot",\n ` + " '421': 'Misdirected Request',\n '422': 'Unprocessable " + "Entity',\n '423': 'Locked',\n '424': 'Failed " + "Dependency',\n '425': 'Unordered Collection',\n " + "'426': 'Upgrade Required',\n '428': 'Precondition Required',\n " + " '429': 'Too Many Requests',\n '431': 'Request " + "Header Fields Too Large',\n '451': 'Unavailable For Legal " + "Reasons',\n '500': 'Internal Server Error',\n " + "'501': 'Not Implemented',\n '502': 'Bad Gateway',\n " + " '503': 'Service Unavailable',\n '504': 'Gateway Timeout',\n " + " '505': 'HTTP Version Not Supported',\n '506': " + "'Variant Also Negotiates',\n '507': 'Insufficient Storage',\n " + " '508': 'Loop Detected',\n '509': 'Bandwidth Limit " + "Exceeded',\n '510': 'Not Extended',\n '511': " + "'Network Authentication Required' },\n Agent: { [Function: Agent] " + 'defaultMaxSockets: Infinity },\n ClientRequest: [Function: ' + 'ClientRequest],\n IncomingMessage: [Function: IncomingMessage],\n ' + ' OutgoingMessage: [Function: OutgoingMessage],\n Server: ' + '[Function: Server],\n ServerResponse: [Function: ServerResponse],\n ' + ' createServer: [Function: createServer],\n get: ' + '[Function: get],\n request: [Function: request],\n ' + 'maxHeaderSize: [Getter],\n globalAgent: [Getter/Setter] },\n ' + " 'https:':\n { Agent: [Function: Agent],\n " + 'globalAgent:\n Agent {\n _events: [Object],\n ' + ' _eventsCount: 1,\n _maxListeners: undefined,\n ' + " defaultPort: 443,\n protocol: 'https:',\n " + ' options: [Object],\n requests: {},\n sockets: ' + '{},\n freeSockets: {},\n keepAliveMsecs: 1000,\n ' + ' keepAlive: false,\n maxSockets: Infinity,\n ' + ' maxFreeSockets: 256,\n maxCachedSessions: 100,\n ' + ' _sessionCache: [Object] },\n Server: [Function: Server],\n' + ' createServer: [Function: createServer],\n get: ' + '[Function: get],\n request: [Function: request] } },\n ' + "pathname: '/api/login' },\n _ended: false,\n _ending: true,\n " + '_redirectCount: 0,\n _redirects: [],\n _requestBodyLength: 58,\n ' + '_requestBodyBuffers:\n [ { data:\n ,\n ' + ' encoding: undefined } ],\n _onNativeResponse: [Function],\n ' + '_currentRequest:\n ClientRequest {\n _events:\n [Object: null ' + 'prototype] {\n response: { [Function: bound onceWrapper] listener: ' + '[Function] },\n socket: [Function],\n abort: [Function],\n ' + ' aborted: [Function],\n error: [Function],\n timeout: ' + '[Function] },\n _eventsCount: 6,\n _maxListeners: undefined,\n ' + ' outputData: [],\n outputSize: 0,\n writable: true,\n ' + '_last: true,\n chunkedEncoding: false,\n shouldKeepAlive: false,\n ' + ' useChunkedEncodingByDefault: true,\n sendDate: false,\n ' + '_removedConnection: false,\n _removedContLen: false,\n _removedTE: ' + 'false,\n _contentLength: null,\n _hasBody: true,\n _trailer: ' + "'',\n finished: false,\n _headerSent: true,\n socket:\n " + ' Socket {\n connecting: false,\n _hadError: true,\n ' + " _parent: null,\n _host: 'localhost',\n _readableState:\n " + ' ReadableState {\n objectMode: false,\n ' + 'highWaterMark: 16384,\n buffer: BufferList { head: null, tail: ' + 'null, length: 0 },\n length: 0,\n pipes: null,\n ' + ' pipesCount: 0,\n flowing: true,\n ended: false,\n ' + ' endEmitted: false,\n reading: true,\n ' + 'sync: false,\n needReadable: true,\n emittedReadable: ' + 'false,\n readableListening: false,\n resumeScheduled: ' + 'false,\n paused: false,\n emitClose: false,\n ' + ' autoDestroy: false,\n destroyed: true,\n ' + "defaultEncoding: 'utf8',\n awaitDrain: 0,\n " + 'readingMore: false,\n decoder: null,\n encoding: null ' + '},\n readable: false,\n _events:\n [Object: null ' + 'prototype] {\n end: [Function: onReadableStreamEnd],\n ' + 'connect: [ [Function], [Function], [Function] ],\n free: ' + '[Function: onFree],\n close: [ [Function: onClose], [Function: ' + 'socketCloseListener] ],\n agentRemove: [Function: onRemove],\n ' + ' drain: [Function: ondrain],\n error: [Function: ' + 'socketErrorListener] },\n _eventsCount: 7,\n _maxListeners: ' + 'undefined,\n _writableState:\n WritableState {\n ' + ' objectMode: false,\n highWaterMark: 16384,\n ' + 'finalCalled: false,\n needDrain: false,\n ending: ' + 'false,\n ended: false,\n finished: false,\n ' + ' destroyed: true,\n decodeStrings: false,\n ' + "defaultEncoding: 'utf8',\n length: 262,\n writing: " + 'true,\n corked: 0,\n sync: false,\n ' + 'bufferProcessing: false,\n onwrite: [Function: bound onwrite],\n ' + ' writecb: [Function: bound onCorkedFinish],\n writelen: ' + '262,\n bufferedRequest: null,\n lastBufferedRequest: ' + 'null,\n pendingcb: 3,\n prefinished: false,\n ' + ' errorEmitted: true,\n emitClose: false,\n ' + 'autoDestroy: false,\n bufferedRequestCount: 0,\n ' + 'corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: false,\n allowHalfOpen: ' + 'false,\n _sockname: null,\n _pendingData:\n [ { ' + "chunk:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n encoding: 'latin1',\n isBuf: " + 'false,\n callback: [Function: nop],\n next: ' + '[Object] },\n { chunk:\n ,\n ' + " encoding: 'buffer',\n isBuf: true,\n " + 'callback: [Function],\n next: null },\n allBuffers: ' + "false ],\n _pendingEncoding: '',\n server: null,\n " + '_server: null,\n parser: null,\n _httpMessage: [Circular],\n ' + ' [Symbol(asyncId)]: 153,\n [Symbol(kHandle)]: null,\n ' + ' [Symbol(lastWriteQueueSize)]: 0,\n [Symbol(timeout)]: null,\n ' + ' [Symbol(kBytesRead)]: 0,\n [Symbol(kBytesWritten)]: 0 },\n ' + 'connection:\n Socket {\n connecting: false,\n ' + "_hadError: true,\n _parent: null,\n _host: 'localhost',\n " + ' _readableState:\n ReadableState {\n objectMode: ' + 'false,\n highWaterMark: 16384,\n buffer: BufferList { ' + 'head: null, tail: null, length: 0 },\n length: 0,\n ' + 'pipes: null,\n pipesCount: 0,\n flowing: true,\n ' + ' ended: false,\n endEmitted: false,\n reading: ' + 'true,\n sync: false,\n needReadable: true,\n ' + ' emittedReadable: false,\n readableListening: false,\n ' + ' resumeScheduled: false,\n paused: false,\n emitClose: ' + 'false,\n autoDestroy: false,\n destroyed: true,\n ' + " defaultEncoding: 'utf8',\n awaitDrain: 0,\n " + 'readingMore: false,\n decoder: null,\n encoding: null ' + '},\n readable: false,\n _events:\n [Object: null ' + 'prototype] {\n end: [Function: onReadableStreamEnd],\n ' + 'connect: [ [Function], [Function], [Function] ],\n free: ' + '[Function: onFree],\n close: [ [Function: onClose], [Function: ' + 'socketCloseListener] ],\n agentRemove: [Function: onRemove],\n ' + ' drain: [Function: ondrain],\n error: [Function: ' + 'socketErrorListener] },\n _eventsCount: 7,\n _maxListeners: ' + 'undefined,\n _writableState:\n WritableState {\n ' + ' objectMode: false,\n highWaterMark: 16384,\n ' + 'finalCalled: false,\n needDrain: false,\n ending: ' + 'false,\n ended: false,\n finished: false,\n ' + ' destroyed: true,\n decodeStrings: false,\n ' + "defaultEncoding: 'utf8',\n length: 262,\n writing: " + 'true,\n corked: 0,\n sync: false,\n ' + 'bufferProcessing: false,\n onwrite: [Function: bound onwrite],\n ' + ' writecb: [Function: bound onCorkedFinish],\n writelen: ' + '262,\n bufferedRequest: null,\n lastBufferedRequest: ' + 'null,\n pendingcb: 3,\n prefinished: false,\n ' + ' errorEmitted: true,\n emitClose: false,\n ' + 'autoDestroy: false,\n bufferedRequestCount: 0,\n ' + 'corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: false,\n allowHalfOpen: ' + 'false,\n _sockname: null,\n _pendingData:\n [ { ' + "chunk:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n encoding: 'latin1',\n isBuf: " + 'false,\n callback: [Function: nop],\n next: ' + '[Object] },\n { chunk:\n ,\n ' + " encoding: 'buffer',\n isBuf: true,\n " + 'callback: [Function],\n next: null },\n allBuffers: ' + "false ],\n _pendingEncoding: '',\n server: null,\n " + '_server: null,\n parser: null,\n _httpMessage: [Circular],\n ' + ' [Symbol(asyncId)]: 153,\n [Symbol(kHandle)]: null,\n ' + ' [Symbol(lastWriteQueueSize)]: 0,\n [Symbol(timeout)]: null,\n ' + ' [Symbol(kBytesRead)]: 0,\n [Symbol(kBytesWritten)]: 0 },\n ' + "_header:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n _onPendingData: [Function: noopPendingOutput],\n " + 'agent:\n Agent {\n _events: [Object: null prototype] { free: ' + '[Function] },\n _eventsCount: 1,\n _maxListeners: undefined,\n' + " defaultPort: 80,\n protocol: 'http:',\n options: " + '{ path: null },\n requests: {},\n sockets: { ' + "'localhost:8080:': [ [Socket] ] },\n freeSockets: {},\n " + 'keepAliveMsecs: 1000,\n keepAlive: false,\n maxSockets: ' + 'Infinity,\n maxFreeSockets: 256 },\n socketPath: undefined,\n ' + " timeout: undefined,\n method: 'POST',\n path: '/api/login',\n " + ' _ended: false,\n res: null,\n aborted: false,\n ' + 'timeoutCb: null,\n upgradeOrConnect: false,\n parser: null,\n ' + ' maxHeadersCount: null,\n _redirectable: [Circular],\n ' + '[Symbol(isCorked)]: false,\n [Symbol(outHeadersKey)]:\n [Object: ' + "null prototype] {\n accept: [ 'Accept', 'application/json, " + "text/plain, */*' ],\n 'content-type': [ 'Content-Type', " + "'application/json;charset=utf-8' ],\n 'user-agent': [ 'User-Agent', " + "'axios/0.18.0' ],\n 'content-length': [ 'Content-Length', 58 ],\n " + " host: [ 'Host', 'localhost:8080' ] } },\n _currentUrl: " + "'http://localhost:8080/api/login' },\n response: undefined }" } 2019-06-04 13:05:45 [15617] [info]: Running at NODE_ENV is development 2019-06-04 13:05:48 [15617] [info]: Successfully connected to AMQP_URL at amqp://admin:admin@rmq.cc.cloud:5672 2019-06-04 13:06:04 [15617] [info]: => received 2019-06-04 13:06:27 [15617] [info]: [Error: Unable to login API:{ Error: connect ECONNREFUSED 127.0.0.1:8080] { at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14) errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 8080, 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, */*', 'Content-Type': 'application/json;charset=utf-8', 'User-Agent': 'axios/0.18.0', 'Content-Length': 58 }, method: 'post', url: 'http://localhost:8080/api/login', data: '{"email":"admin@coachingcloud.com","password":"admin@123"}' }, request: Writable { _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, 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, emitClose: true, autoDestroy: false, bufferedRequestCount: 0, corkedRequestsFree: { next: null, entry: null, finish: [Function: bound onCorkedFinish] } }, writable: true, _events: [Object: null prototype] { response: [Function: handleResponse], error: [Function: handleRequestError] }, _eventsCount: 2, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: 10485760, protocol: 'http:', path: '/api/login', method: 'post', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json;charset=utf-8', 'User-Agent': 'axios/0.18.0', 'Content-Length': 58 }, agent: undefined, auth: undefined, hostname: 'localhost', port: '8080', nativeProtocols: { 'http:': { _connectionListener: [Function: connectionListener], METHODS: [ 'ACL', 'BIND', 'CHECKOUT', 'CONNECT', 'COPY', 'DELETE', 'GET', 'HEAD', 'LINK', 'LOCK', 'M-SEARCH', 'MERGE', 'MKACTIVITY', 'MKCALENDAR', 'MKCOL', 'MOVE', 'NOTIFY', 'OPTIONS', 'PATCH', 'POST', 'PROPFIND', 'PROPPATCH', 'PURGE', 'PUT', 'REBIND', 'REPORT', 'SEARCH', 'SOURCE', 'SUBSCRIBE', 'TRACE', 'UNBIND', 'UNLINK', 'UNLOCK', 'UNSUBSCRIBE' ], STATUS_CODES: { '100': 'Continue', '101': 'Switching Protocols', '102': 'Processing', '103': 'Early Hints', '200': 'OK', '201': 'Created', '202': 'Accepted', '203': 'Non-Authoritative Information', '204': 'No Content', '205': 'Reset Content', '206': 'Partial Content', '207': 'Multi-Status', '208': 'Already Reported', '226': 'IM Used', '300': 'Multiple Choices', '301': 'Moved Permanently', '302': 'Found', '303': 'See Other', '304': 'Not Modified', '305': 'Use Proxy', '307': 'Temporary Redirect', '308': 'Permanent Redirect', '400': 'Bad Request', '401': 'Unauthorized', '402': 'Payment Required', '403': 'Forbidden', '404': 'Not Found', '405': 'Method Not Allowed', '406': 'Not Acceptable', '407': 'Proxy Authentication Required', '408': 'Request Timeout', '409': 'Conflict', '410': 'Gone', '411': 'Length Required', '412': 'Precondition Failed', '413': 'Payload Too Large', '414': 'URI Too Long', '415': 'Unsupported Media Type', '416': 'Range Not Satisfiable', '417': 'Expectation Failed', '418': "I'm a Teapot", '421': 'Misdirected Request', '422': 'Unprocessable Entity', '423': 'Locked', '424': 'Failed Dependency', '425': 'Unordered Collection', '426': 'Upgrade Required', '428': 'Precondition Required', '429': 'Too Many Requests', '431': 'Request Header Fields Too Large', '451': 'Unavailable For Legal Reasons', '500': 'Internal Server Error', '501': 'Not Implemented', '502': 'Bad Gateway', '503': 'Service Unavailable', '504': 'Gateway Timeout', '505': 'HTTP Version Not Supported', '506': 'Variant Also Negotiates', '507': 'Insufficient Storage', '508': 'Loop Detected', '509': 'Bandwidth Limit Exceeded', '510': 'Not Extended', '511': 'Network Authentication Required' }, Agent: { [Function: Agent] defaultMaxSockets: Infinity }, ClientRequest: [Function: ClientRequest], IncomingMessage: [Function: IncomingMessage], OutgoingMessage: [Function: OutgoingMessage], Server: [Function: Server], ServerResponse: [Function: ServerResponse], createServer: [Function: createServer], get: [Function: get], request: [Function: request], maxHeaderSize: [Getter], globalAgent: [Getter/Setter] }, 'https:': { Agent: [Function: Agent], globalAgent: Agent { _events: [Object], _eventsCount: 1, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object], requests: {}, sockets: {}, freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, maxCachedSessions: 100, _sessionCache: [Object] }, Server: [Function: Server], createServer: [Function: createServer], get: [Function: get], request: [Function: request] } }, pathname: '/api/login' }, _ended: false, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 58, _requestBodyBuffers: [ { data: , encoding: undefined } ], _onNativeResponse: [Function], _currentRequest: ClientRequest { _events: [Object: null prototype] { response: { [Function: bound onceWrapper] listener: [Function] }, socket: [Function], abort: [Function], aborted: [Function], error: [Function], timeout: [Function] }, _eventsCount: 6, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: false, _headerSent: true, socket: Socket { connecting: false, _hadError: true, _parent: null, _host: 'localhost', _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: null, pipesCount: 0, flowing: true, ended: false, endEmitted: false, reading: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, paused: false, emitClose: false, autoDestroy: false, destroyed: true, defaultEncoding: 'utf8', awaitDrain: 0, readingMore: false, decoder: null, encoding: null }, readable: false, _events: [Object: null prototype] { end: [Function: onReadableStreamEnd], connect: [ [Function], [Function], [Function] ], free: [Function: onFree], close: [ [Function: onClose], [Function: socketCloseListener] ], agentRemove: [Function: onRemove], drain: [Function: ondrain], error: [Function: socketErrorListener] }, _eventsCount: 7, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: true, decodeStrings: false, defaultEncoding: 'utf8', length: 262, writing: true, corked: 0, sync: false, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: [Function: bound onCorkedFinish], writelen: 262, bufferedRequest: null, lastBufferedRequest: null, pendingcb: 3, prefinished: false, errorEmitted: true, emitClose: false, autoDestroy: false, bufferedRequestCount: 0, corkedRequestsFree: { next: null, entry: null, finish: [Function: bound onCorkedFinish] } }, writable: false, allowHalfOpen: false, _sockname: null, _pendingData: [ { chunk: 'POST /api/login HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json;charset=utf-8\r\nUser-Agent: axios/0.18.0\r\nContent-Length: 58\r\nHost: localhost:8080\r\nConnection: close\r\n\r\n', encoding: 'latin1', isBuf: false, callback: [Function: nop], next: [Object] }, { chunk: , encoding: 'buffer', isBuf: true, callback: [Function], next: null }, allBuffers: false ], _pendingEncoding: '', server: null, _server: null, parser: null, _httpMessage: [Circular], [Symbol(asyncId)]: 155, [Symbol(kHandle)]: null, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, connection: Socket { connecting: false, _hadError: true, _parent: null, _host: 'localhost', _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: null, pipesCount: 0, flowing: true, ended: false, endEmitted: false, reading: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, paused: false, emitClose: false, autoDestroy: false, destroyed: true, defaultEncoding: 'utf8', awaitDrain: 0, readingMore: false, decoder: null, encoding: null }, readable: false, _events: [Object: null prototype] { end: [Function: onReadableStreamEnd], connect: [ [Function], [Function], [Function] ], free: [Function: onFree], close: [ [Function: onClose], [Function: socketCloseListener] ], agentRemove: [Function: onRemove], drain: [Function: ondrain], error: [Function: socketErrorListener] }, _eventsCount: 7, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: true, decodeStrings: false, defaultEncoding: 'utf8', length: 262, writing: true, corked: 0, sync: false, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: [Function: bound onCorkedFinish], writelen: 262, bufferedRequest: null, lastBufferedRequest: null, pendingcb: 3, prefinished: false, errorEmitted: true, emitClose: false, autoDestroy: false, bufferedRequestCount: 0, corkedRequestsFree: { next: null, entry: null, finish: [Function: bound onCorkedFinish] } }, writable: false, allowHalfOpen: false, _sockname: null, _pendingData: [ { chunk: 'POST /api/login HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json;charset=utf-8\r\nUser-Agent: axios/0.18.0\r\nContent-Length: 58\r\nHost: localhost:8080\r\nConnection: close\r\n\r\n', encoding: 'latin1', isBuf: false, callback: [Function: nop], next: [Object] }, { chunk: , encoding: 'buffer', isBuf: true, callback: [Function], next: null }, allBuffers: false ], _pendingEncoding: '', server: null, _server: null, parser: null, _httpMessage: [Circular], [Symbol(asyncId)]: 155, [Symbol(kHandle)]: null, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, _header: 'POST /api/login HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json;charset=utf-8\r\nUser-Agent: axios/0.18.0\r\nContent-Length: 58\r\nHost: localhost:8080\r\nConnection: close\r\n\r\n', _onPendingData: [Function: noopPendingOutput], agent: Agent { _events: [Object: null prototype] { free: [Function] }, _eventsCount: 1, _maxListeners: undefined, defaultPort: 80, protocol: 'http:', options: { path: null }, requests: {}, sockets: { 'localhost:8080:': [ [Socket] ] }, freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256 }, socketPath: undefined, timeout: undefined, method: 'POST', path: '/api/login', _ended: false, res: null, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, _redirectable: [Circular], [Symbol(isCorked)]: false, [Symbol(outHeadersKey)]: [Object: null prototype] { accept: [ 'Accept', 'application/json, text/plain, */*' ], 'content-type': [ 'Content-Type', 'application/json;charset=utf-8' ], 'user-agent': [ 'User-Agent', 'axios/0.18.0' ], 'content-length': [ 'Content-Length', 58 ], host: [ 'Host', 'localhost:8080' ] } }, _currentUrl: 'http://localhost:8080/api/login' }, response: undefined } at axios.request.catch.error (/Users/steven_lee/Documents/CoachingCloud/Projects/cc-automated-push-content/server/services/api_util.js:31:15) at processTicksAndRejections (internal/process/task_queues.js:86:5) [stack]: 'Error: Unable to login API:{ Error: connect ECONNREFUSED 127.0.0.1:8080\n at ' + 'TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)\n errno: ' + "'ECONNREFUSED',\n code: 'ECONNREFUSED',\n syscall: 'connect',\n address: " + "'127.0.0.1',\n port: 8080,\n config:\n { adapter: [Function: httpAdapter],\n " + " transformRequest: { '0': [Function: transformRequest] },\n " + "transformResponse: { '0': [Function: transformResponse] },\n timeout: 0,\n " + " xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n " + 'maxContentLength: -1,\n validateStatus: [Function: validateStatus],\n ' + "headers:\n { Accept: 'application/json, text/plain, */*',\n " + "'Content-Type': 'application/json;charset=utf-8',\n 'User-Agent': " + "'axios/0.18.0',\n 'Content-Length': 58 },\n method: 'post',\n url: " + "'http://localhost:8080/api/login',\n data: " + `'{"email":"admin@coachingcloud.com","password":"admin@123"}' },\n request:\n ` + 'Writable {\n _writableState:\n WritableState {\n objectMode: ' + 'false,\n highWaterMark: 16384,\n finalCalled: false,\n ' + 'needDrain: false,\n ending: false,\n ended: false,\n ' + 'finished: false,\n destroyed: false,\n decodeStrings: true,\n ' + " defaultEncoding: 'utf8',\n length: 0,\n writing: false,\n " + 'corked: 0,\n sync: true,\n bufferProcessing: false,\n ' + 'onwrite: [Function: bound onwrite],\n writecb: null,\n writelen: ' + '0,\n bufferedRequest: null,\n lastBufferedRequest: null,\n ' + 'pendingcb: 0,\n prefinished: false,\n errorEmitted: false,\n ' + 'emitClose: true,\n autoDestroy: false,\n bufferedRequestCount: 0,\n ' + ' corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: true,\n _events:\n [Object: null ' + 'prototype] { response: [Function: handleResponse], error: [Function: ' + 'handleRequestError] },\n _eventsCount: 2,\n _maxListeners: undefined,\n ' + ' _options:\n { maxRedirects: 21,\n maxBodyLength: 10485760,\n ' + "protocol: 'http:',\n path: '/api/login',\n method: 'post',\n " + "headers:\n { Accept: 'application/json, text/plain, */*',\n " + "'Content-Type': 'application/json;charset=utf-8',\n 'User-Agent': " + "'axios/0.18.0',\n 'Content-Length': 58 },\n agent: undefined,\n " + " auth: undefined,\n hostname: 'localhost',\n port: '8080',\n " + " nativeProtocols:\n { 'http:':\n { _connectionListener: " + "[Function: connectionListener],\n METHODS:\n [ 'ACL',\n" + " 'BIND',\n 'CHECKOUT',\n " + "'CONNECT',\n 'COPY',\n 'DELETE',\n " + " 'GET',\n 'HEAD',\n 'LINK',\n " + "'LOCK',\n 'M-SEARCH',\n 'MERGE',\n " + " 'MKACTIVITY',\n 'MKCALENDAR',\n 'MKCOL',\n " + " 'MOVE',\n 'NOTIFY',\n 'OPTIONS',\n " + " 'PATCH',\n 'POST',\n 'PROPFIND',\n " + " 'PROPPATCH',\n 'PURGE',\n 'PUT',\n " + " 'REBIND',\n 'REPORT',\n 'SEARCH',\n " + " 'SOURCE',\n 'SUBSCRIBE',\n " + "'TRACE',\n 'UNBIND',\n 'UNLINK',\n " + " 'UNLOCK',\n 'UNSUBSCRIBE' ],\n STATUS_CODES:\n " + " { '100': 'Continue',\n '101': 'Switching Protocols',\n " + " '102': 'Processing',\n '103': 'Early Hints',\n " + " '200': 'OK',\n '201': 'Created',\n " + "'202': 'Accepted',\n '203': 'Non-Authoritative Information',\n " + " '204': 'No Content',\n '205': 'Reset Content',\n " + " '206': 'Partial Content',\n '207': " + "'Multi-Status',\n '208': 'Already Reported',\n " + "'226': 'IM Used',\n '300': 'Multiple Choices',\n " + "'301': 'Moved Permanently',\n '302': 'Found',\n " + "'303': 'See Other',\n '304': 'Not Modified',\n " + "'305': 'Use Proxy',\n '307': 'Temporary Redirect',\n " + " '308': 'Permanent Redirect',\n '400': 'Bad Request',\n " + " '401': 'Unauthorized',\n '402': 'Payment Required',\n " + " '403': 'Forbidden',\n '404': 'Not Found',\n " + " '405': 'Method Not Allowed',\n '406': 'Not " + "Acceptable',\n '407': 'Proxy Authentication Required',\n " + " '408': 'Request Timeout',\n '409': 'Conflict',\n " + " '410': 'Gone',\n '411': 'Length Required',\n " + " '412': 'Precondition Failed',\n '413': 'Payload Too Large',\n" + " '414': 'URI Too Long',\n '415': 'Unsupported " + "Media Type',\n '416': 'Range Not Satisfiable',\n " + `'417': 'Expectation Failed',\n '418': "I'm a Teapot",\n ` + " '421': 'Misdirected Request',\n '422': 'Unprocessable " + "Entity',\n '423': 'Locked',\n '424': 'Failed " + "Dependency',\n '425': 'Unordered Collection',\n " + "'426': 'Upgrade Required',\n '428': 'Precondition Required',\n " + " '429': 'Too Many Requests',\n '431': 'Request " + "Header Fields Too Large',\n '451': 'Unavailable For Legal " + "Reasons',\n '500': 'Internal Server Error',\n " + "'501': 'Not Implemented',\n '502': 'Bad Gateway',\n " + " '503': 'Service Unavailable',\n '504': 'Gateway Timeout',\n " + " '505': 'HTTP Version Not Supported',\n '506': " + "'Variant Also Negotiates',\n '507': 'Insufficient Storage',\n " + " '508': 'Loop Detected',\n '509': 'Bandwidth Limit " + "Exceeded',\n '510': 'Not Extended',\n '511': " + "'Network Authentication Required' },\n Agent: { [Function: Agent] " + 'defaultMaxSockets: Infinity },\n ClientRequest: [Function: ' + 'ClientRequest],\n IncomingMessage: [Function: IncomingMessage],\n ' + ' OutgoingMessage: [Function: OutgoingMessage],\n Server: ' + '[Function: Server],\n ServerResponse: [Function: ServerResponse],\n ' + ' createServer: [Function: createServer],\n get: ' + '[Function: get],\n request: [Function: request],\n ' + 'maxHeaderSize: [Getter],\n globalAgent: [Getter/Setter] },\n ' + " 'https:':\n { Agent: [Function: Agent],\n " + 'globalAgent:\n Agent {\n _events: [Object],\n ' + ' _eventsCount: 1,\n _maxListeners: undefined,\n ' + " defaultPort: 443,\n protocol: 'https:',\n " + ' options: [Object],\n requests: {},\n sockets: ' + '{},\n freeSockets: {},\n keepAliveMsecs: 1000,\n ' + ' keepAlive: false,\n maxSockets: Infinity,\n ' + ' maxFreeSockets: 256,\n maxCachedSessions: 100,\n ' + ' _sessionCache: [Object] },\n Server: [Function: Server],\n' + ' createServer: [Function: createServer],\n get: ' + '[Function: get],\n request: [Function: request] } },\n ' + "pathname: '/api/login' },\n _ended: false,\n _ending: true,\n " + '_redirectCount: 0,\n _redirects: [],\n _requestBodyLength: 58,\n ' + '_requestBodyBuffers:\n [ { data:\n ,\n ' + ' encoding: undefined } ],\n _onNativeResponse: [Function],\n ' + '_currentRequest:\n ClientRequest {\n _events:\n [Object: null ' + 'prototype] {\n response: { [Function: bound onceWrapper] listener: ' + '[Function] },\n socket: [Function],\n abort: [Function],\n ' + ' aborted: [Function],\n error: [Function],\n timeout: ' + '[Function] },\n _eventsCount: 6,\n _maxListeners: undefined,\n ' + ' outputData: [],\n outputSize: 0,\n writable: true,\n ' + '_last: true,\n chunkedEncoding: false,\n shouldKeepAlive: false,\n ' + ' useChunkedEncodingByDefault: true,\n sendDate: false,\n ' + '_removedConnection: false,\n _removedContLen: false,\n _removedTE: ' + 'false,\n _contentLength: null,\n _hasBody: true,\n _trailer: ' + "'',\n finished: false,\n _headerSent: true,\n socket:\n " + ' Socket {\n connecting: false,\n _hadError: true,\n ' + " _parent: null,\n _host: 'localhost',\n _readableState:\n " + ' ReadableState {\n objectMode: false,\n ' + 'highWaterMark: 16384,\n buffer: BufferList { head: null, tail: ' + 'null, length: 0 },\n length: 0,\n pipes: null,\n ' + ' pipesCount: 0,\n flowing: true,\n ended: false,\n ' + ' endEmitted: false,\n reading: true,\n ' + 'sync: false,\n needReadable: true,\n emittedReadable: ' + 'false,\n readableListening: false,\n resumeScheduled: ' + 'false,\n paused: false,\n emitClose: false,\n ' + ' autoDestroy: false,\n destroyed: true,\n ' + "defaultEncoding: 'utf8',\n awaitDrain: 0,\n " + 'readingMore: false,\n decoder: null,\n encoding: null ' + '},\n readable: false,\n _events:\n [Object: null ' + 'prototype] {\n end: [Function: onReadableStreamEnd],\n ' + 'connect: [ [Function], [Function], [Function] ],\n free: ' + '[Function: onFree],\n close: [ [Function: onClose], [Function: ' + 'socketCloseListener] ],\n agentRemove: [Function: onRemove],\n ' + ' drain: [Function: ondrain],\n error: [Function: ' + 'socketErrorListener] },\n _eventsCount: 7,\n _maxListeners: ' + 'undefined,\n _writableState:\n WritableState {\n ' + ' objectMode: false,\n highWaterMark: 16384,\n ' + 'finalCalled: false,\n needDrain: false,\n ending: ' + 'false,\n ended: false,\n finished: false,\n ' + ' destroyed: true,\n decodeStrings: false,\n ' + "defaultEncoding: 'utf8',\n length: 262,\n writing: " + 'true,\n corked: 0,\n sync: false,\n ' + 'bufferProcessing: false,\n onwrite: [Function: bound onwrite],\n ' + ' writecb: [Function: bound onCorkedFinish],\n writelen: ' + '262,\n bufferedRequest: null,\n lastBufferedRequest: ' + 'null,\n pendingcb: 3,\n prefinished: false,\n ' + ' errorEmitted: true,\n emitClose: false,\n ' + 'autoDestroy: false,\n bufferedRequestCount: 0,\n ' + 'corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: false,\n allowHalfOpen: ' + 'false,\n _sockname: null,\n _pendingData:\n [ { ' + "chunk:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n encoding: 'latin1',\n isBuf: " + 'false,\n callback: [Function: nop],\n next: ' + '[Object] },\n { chunk:\n ,\n ' + " encoding: 'buffer',\n isBuf: true,\n " + 'callback: [Function],\n next: null },\n allBuffers: ' + "false ],\n _pendingEncoding: '',\n server: null,\n " + '_server: null,\n parser: null,\n _httpMessage: [Circular],\n ' + ' [Symbol(asyncId)]: 155,\n [Symbol(kHandle)]: null,\n ' + ' [Symbol(lastWriteQueueSize)]: 0,\n [Symbol(timeout)]: null,\n ' + ' [Symbol(kBytesRead)]: 0,\n [Symbol(kBytesWritten)]: 0 },\n ' + 'connection:\n Socket {\n connecting: false,\n ' + "_hadError: true,\n _parent: null,\n _host: 'localhost',\n " + ' _readableState:\n ReadableState {\n objectMode: ' + 'false,\n highWaterMark: 16384,\n buffer: BufferList { ' + 'head: null, tail: null, length: 0 },\n length: 0,\n ' + 'pipes: null,\n pipesCount: 0,\n flowing: true,\n ' + ' ended: false,\n endEmitted: false,\n reading: ' + 'true,\n sync: false,\n needReadable: true,\n ' + ' emittedReadable: false,\n readableListening: false,\n ' + ' resumeScheduled: false,\n paused: false,\n emitClose: ' + 'false,\n autoDestroy: false,\n destroyed: true,\n ' + " defaultEncoding: 'utf8',\n awaitDrain: 0,\n " + 'readingMore: false,\n decoder: null,\n encoding: null ' + '},\n readable: false,\n _events:\n [Object: null ' + 'prototype] {\n end: [Function: onReadableStreamEnd],\n ' + 'connect: [ [Function], [Function], [Function] ],\n free: ' + '[Function: onFree],\n close: [ [Function: onClose], [Function: ' + 'socketCloseListener] ],\n agentRemove: [Function: onRemove],\n ' + ' drain: [Function: ondrain],\n error: [Function: ' + 'socketErrorListener] },\n _eventsCount: 7,\n _maxListeners: ' + 'undefined,\n _writableState:\n WritableState {\n ' + ' objectMode: false,\n highWaterMark: 16384,\n ' + 'finalCalled: false,\n needDrain: false,\n ending: ' + 'false,\n ended: false,\n finished: false,\n ' + ' destroyed: true,\n decodeStrings: false,\n ' + "defaultEncoding: 'utf8',\n length: 262,\n writing: " + 'true,\n corked: 0,\n sync: false,\n ' + 'bufferProcessing: false,\n onwrite: [Function: bound onwrite],\n ' + ' writecb: [Function: bound onCorkedFinish],\n writelen: ' + '262,\n bufferedRequest: null,\n lastBufferedRequest: ' + 'null,\n pendingcb: 3,\n prefinished: false,\n ' + ' errorEmitted: true,\n emitClose: false,\n ' + 'autoDestroy: false,\n bufferedRequestCount: 0,\n ' + 'corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: false,\n allowHalfOpen: ' + 'false,\n _sockname: null,\n _pendingData:\n [ { ' + "chunk:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n encoding: 'latin1',\n isBuf: " + 'false,\n callback: [Function: nop],\n next: ' + '[Object] },\n { chunk:\n ,\n ' + " encoding: 'buffer',\n isBuf: true,\n " + 'callback: [Function],\n next: null },\n allBuffers: ' + "false ],\n _pendingEncoding: '',\n server: null,\n " + '_server: null,\n parser: null,\n _httpMessage: [Circular],\n ' + ' [Symbol(asyncId)]: 155,\n [Symbol(kHandle)]: null,\n ' + ' [Symbol(lastWriteQueueSize)]: 0,\n [Symbol(timeout)]: null,\n ' + ' [Symbol(kBytesRead)]: 0,\n [Symbol(kBytesWritten)]: 0 },\n ' + "_header:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n _onPendingData: [Function: noopPendingOutput],\n " + 'agent:\n Agent {\n _events: [Object: null prototype] { free: ' + '[Function] },\n _eventsCount: 1,\n _maxListeners: undefined,\n' + " defaultPort: 80,\n protocol: 'http:',\n options: " + '{ path: null },\n requests: {},\n sockets: { ' + "'localhost:8080:': [ [Socket] ] },\n freeSockets: {},\n " + 'keepAliveMsecs: 1000,\n keepAlive: false,\n maxSockets: ' + 'Infinity,\n maxFreeSockets: 256 },\n socketPath: undefined,\n ' + " timeout: undefined,\n method: 'POST',\n path: '/api/login',\n " + ' _ended: false,\n res: null,\n aborted: false,\n ' + 'timeoutCb: null,\n upgradeOrConnect: false,\n parser: null,\n ' + ' maxHeadersCount: null,\n _redirectable: [Circular],\n ' + '[Symbol(isCorked)]: false,\n [Symbol(outHeadersKey)]:\n [Object: ' + "null prototype] {\n accept: [ 'Accept', 'application/json, " + "text/plain, */*' ],\n 'content-type': [ 'Content-Type', " + "'application/json;charset=utf-8' ],\n 'user-agent': [ 'User-Agent', " + "'axios/0.18.0' ],\n 'content-length': [ 'Content-Length', 58 ],\n " + " host: [ 'Host', 'localhost:8080' ] } },\n _currentUrl: " + "'http://localhost:8080/api/login' },\n response: undefined }\n at " + 'axios.request.catch.error ' + '(/Users/steven_lee/Documents/CoachingCloud/Projects/cc-automated-push-content/server/services/api_util.js:31:15)\n' + ' at processTicksAndRejections (internal/process/task_queues.js:86:5)', [message]: 'Unable to login API:{ Error: connect ECONNREFUSED 127.0.0.1:8080\n at ' + 'TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)\n errno: ' + "'ECONNREFUSED',\n code: 'ECONNREFUSED',\n syscall: 'connect',\n address: " + "'127.0.0.1',\n port: 8080,\n config:\n { adapter: [Function: httpAdapter],\n " + " transformRequest: { '0': [Function: transformRequest] },\n " + "transformResponse: { '0': [Function: transformResponse] },\n timeout: 0,\n " + " xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n " + 'maxContentLength: -1,\n validateStatus: [Function: validateStatus],\n ' + "headers:\n { Accept: 'application/json, text/plain, */*',\n " + "'Content-Type': 'application/json;charset=utf-8',\n 'User-Agent': " + "'axios/0.18.0',\n 'Content-Length': 58 },\n method: 'post',\n url: " + "'http://localhost:8080/api/login',\n data: " + `'{"email":"admin@coachingcloud.com","password":"admin@123"}' },\n request:\n ` + 'Writable {\n _writableState:\n WritableState {\n objectMode: ' + 'false,\n highWaterMark: 16384,\n finalCalled: false,\n ' + 'needDrain: false,\n ending: false,\n ended: false,\n ' + 'finished: false,\n destroyed: false,\n decodeStrings: true,\n ' + " defaultEncoding: 'utf8',\n length: 0,\n writing: false,\n " + 'corked: 0,\n sync: true,\n bufferProcessing: false,\n ' + 'onwrite: [Function: bound onwrite],\n writecb: null,\n writelen: ' + '0,\n bufferedRequest: null,\n lastBufferedRequest: null,\n ' + 'pendingcb: 0,\n prefinished: false,\n errorEmitted: false,\n ' + 'emitClose: true,\n autoDestroy: false,\n bufferedRequestCount: 0,\n ' + ' corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: true,\n _events:\n [Object: null ' + 'prototype] { response: [Function: handleResponse], error: [Function: ' + 'handleRequestError] },\n _eventsCount: 2,\n _maxListeners: undefined,\n ' + ' _options:\n { maxRedirects: 21,\n maxBodyLength: 10485760,\n ' + "protocol: 'http:',\n path: '/api/login',\n method: 'post',\n " + "headers:\n { Accept: 'application/json, text/plain, */*',\n " + "'Content-Type': 'application/json;charset=utf-8',\n 'User-Agent': " + "'axios/0.18.0',\n 'Content-Length': 58 },\n agent: undefined,\n " + " auth: undefined,\n hostname: 'localhost',\n port: '8080',\n " + " nativeProtocols:\n { 'http:':\n { _connectionListener: " + "[Function: connectionListener],\n METHODS:\n [ 'ACL',\n" + " 'BIND',\n 'CHECKOUT',\n " + "'CONNECT',\n 'COPY',\n 'DELETE',\n " + " 'GET',\n 'HEAD',\n 'LINK',\n " + "'LOCK',\n 'M-SEARCH',\n 'MERGE',\n " + " 'MKACTIVITY',\n 'MKCALENDAR',\n 'MKCOL',\n " + " 'MOVE',\n 'NOTIFY',\n 'OPTIONS',\n " + " 'PATCH',\n 'POST',\n 'PROPFIND',\n " + " 'PROPPATCH',\n 'PURGE',\n 'PUT',\n " + " 'REBIND',\n 'REPORT',\n 'SEARCH',\n " + " 'SOURCE',\n 'SUBSCRIBE',\n " + "'TRACE',\n 'UNBIND',\n 'UNLINK',\n " + " 'UNLOCK',\n 'UNSUBSCRIBE' ],\n STATUS_CODES:\n " + " { '100': 'Continue',\n '101': 'Switching Protocols',\n " + " '102': 'Processing',\n '103': 'Early Hints',\n " + " '200': 'OK',\n '201': 'Created',\n " + "'202': 'Accepted',\n '203': 'Non-Authoritative Information',\n " + " '204': 'No Content',\n '205': 'Reset Content',\n " + " '206': 'Partial Content',\n '207': " + "'Multi-Status',\n '208': 'Already Reported',\n " + "'226': 'IM Used',\n '300': 'Multiple Choices',\n " + "'301': 'Moved Permanently',\n '302': 'Found',\n " + "'303': 'See Other',\n '304': 'Not Modified',\n " + "'305': 'Use Proxy',\n '307': 'Temporary Redirect',\n " + " '308': 'Permanent Redirect',\n '400': 'Bad Request',\n " + " '401': 'Unauthorized',\n '402': 'Payment Required',\n " + " '403': 'Forbidden',\n '404': 'Not Found',\n " + " '405': 'Method Not Allowed',\n '406': 'Not " + "Acceptable',\n '407': 'Proxy Authentication Required',\n " + " '408': 'Request Timeout',\n '409': 'Conflict',\n " + " '410': 'Gone',\n '411': 'Length Required',\n " + " '412': 'Precondition Failed',\n '413': 'Payload Too Large',\n" + " '414': 'URI Too Long',\n '415': 'Unsupported " + "Media Type',\n '416': 'Range Not Satisfiable',\n " + `'417': 'Expectation Failed',\n '418': "I'm a Teapot",\n ` + " '421': 'Misdirected Request',\n '422': 'Unprocessable " + "Entity',\n '423': 'Locked',\n '424': 'Failed " + "Dependency',\n '425': 'Unordered Collection',\n " + "'426': 'Upgrade Required',\n '428': 'Precondition Required',\n " + " '429': 'Too Many Requests',\n '431': 'Request " + "Header Fields Too Large',\n '451': 'Unavailable For Legal " + "Reasons',\n '500': 'Internal Server Error',\n " + "'501': 'Not Implemented',\n '502': 'Bad Gateway',\n " + " '503': 'Service Unavailable',\n '504': 'Gateway Timeout',\n " + " '505': 'HTTP Version Not Supported',\n '506': " + "'Variant Also Negotiates',\n '507': 'Insufficient Storage',\n " + " '508': 'Loop Detected',\n '509': 'Bandwidth Limit " + "Exceeded',\n '510': 'Not Extended',\n '511': " + "'Network Authentication Required' },\n Agent: { [Function: Agent] " + 'defaultMaxSockets: Infinity },\n ClientRequest: [Function: ' + 'ClientRequest],\n IncomingMessage: [Function: IncomingMessage],\n ' + ' OutgoingMessage: [Function: OutgoingMessage],\n Server: ' + '[Function: Server],\n ServerResponse: [Function: ServerResponse],\n ' + ' createServer: [Function: createServer],\n get: ' + '[Function: get],\n request: [Function: request],\n ' + 'maxHeaderSize: [Getter],\n globalAgent: [Getter/Setter] },\n ' + " 'https:':\n { Agent: [Function: Agent],\n " + 'globalAgent:\n Agent {\n _events: [Object],\n ' + ' _eventsCount: 1,\n _maxListeners: undefined,\n ' + " defaultPort: 443,\n protocol: 'https:',\n " + ' options: [Object],\n requests: {},\n sockets: ' + '{},\n freeSockets: {},\n keepAliveMsecs: 1000,\n ' + ' keepAlive: false,\n maxSockets: Infinity,\n ' + ' maxFreeSockets: 256,\n maxCachedSessions: 100,\n ' + ' _sessionCache: [Object] },\n Server: [Function: Server],\n' + ' createServer: [Function: createServer],\n get: ' + '[Function: get],\n request: [Function: request] } },\n ' + "pathname: '/api/login' },\n _ended: false,\n _ending: true,\n " + '_redirectCount: 0,\n _redirects: [],\n _requestBodyLength: 58,\n ' + '_requestBodyBuffers:\n [ { data:\n ,\n ' + ' encoding: undefined } ],\n _onNativeResponse: [Function],\n ' + '_currentRequest:\n ClientRequest {\n _events:\n [Object: null ' + 'prototype] {\n response: { [Function: bound onceWrapper] listener: ' + '[Function] },\n socket: [Function],\n abort: [Function],\n ' + ' aborted: [Function],\n error: [Function],\n timeout: ' + '[Function] },\n _eventsCount: 6,\n _maxListeners: undefined,\n ' + ' outputData: [],\n outputSize: 0,\n writable: true,\n ' + '_last: true,\n chunkedEncoding: false,\n shouldKeepAlive: false,\n ' + ' useChunkedEncodingByDefault: true,\n sendDate: false,\n ' + '_removedConnection: false,\n _removedContLen: false,\n _removedTE: ' + 'false,\n _contentLength: null,\n _hasBody: true,\n _trailer: ' + "'',\n finished: false,\n _headerSent: true,\n socket:\n " + ' Socket {\n connecting: false,\n _hadError: true,\n ' + " _parent: null,\n _host: 'localhost',\n _readableState:\n " + ' ReadableState {\n objectMode: false,\n ' + 'highWaterMark: 16384,\n buffer: BufferList { head: null, tail: ' + 'null, length: 0 },\n length: 0,\n pipes: null,\n ' + ' pipesCount: 0,\n flowing: true,\n ended: false,\n ' + ' endEmitted: false,\n reading: true,\n ' + 'sync: false,\n needReadable: true,\n emittedReadable: ' + 'false,\n readableListening: false,\n resumeScheduled: ' + 'false,\n paused: false,\n emitClose: false,\n ' + ' autoDestroy: false,\n destroyed: true,\n ' + "defaultEncoding: 'utf8',\n awaitDrain: 0,\n " + 'readingMore: false,\n decoder: null,\n encoding: null ' + '},\n readable: false,\n _events:\n [Object: null ' + 'prototype] {\n end: [Function: onReadableStreamEnd],\n ' + 'connect: [ [Function], [Function], [Function] ],\n free: ' + '[Function: onFree],\n close: [ [Function: onClose], [Function: ' + 'socketCloseListener] ],\n agentRemove: [Function: onRemove],\n ' + ' drain: [Function: ondrain],\n error: [Function: ' + 'socketErrorListener] },\n _eventsCount: 7,\n _maxListeners: ' + 'undefined,\n _writableState:\n WritableState {\n ' + ' objectMode: false,\n highWaterMark: 16384,\n ' + 'finalCalled: false,\n needDrain: false,\n ending: ' + 'false,\n ended: false,\n finished: false,\n ' + ' destroyed: true,\n decodeStrings: false,\n ' + "defaultEncoding: 'utf8',\n length: 262,\n writing: " + 'true,\n corked: 0,\n sync: false,\n ' + 'bufferProcessing: false,\n onwrite: [Function: bound onwrite],\n ' + ' writecb: [Function: bound onCorkedFinish],\n writelen: ' + '262,\n bufferedRequest: null,\n lastBufferedRequest: ' + 'null,\n pendingcb: 3,\n prefinished: false,\n ' + ' errorEmitted: true,\n emitClose: false,\n ' + 'autoDestroy: false,\n bufferedRequestCount: 0,\n ' + 'corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: false,\n allowHalfOpen: ' + 'false,\n _sockname: null,\n _pendingData:\n [ { ' + "chunk:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n encoding: 'latin1',\n isBuf: " + 'false,\n callback: [Function: nop],\n next: ' + '[Object] },\n { chunk:\n ,\n ' + " encoding: 'buffer',\n isBuf: true,\n " + 'callback: [Function],\n next: null },\n allBuffers: ' + "false ],\n _pendingEncoding: '',\n server: null,\n " + '_server: null,\n parser: null,\n _httpMessage: [Circular],\n ' + ' [Symbol(asyncId)]: 155,\n [Symbol(kHandle)]: null,\n ' + ' [Symbol(lastWriteQueueSize)]: 0,\n [Symbol(timeout)]: null,\n ' + ' [Symbol(kBytesRead)]: 0,\n [Symbol(kBytesWritten)]: 0 },\n ' + 'connection:\n Socket {\n connecting: false,\n ' + "_hadError: true,\n _parent: null,\n _host: 'localhost',\n " + ' _readableState:\n ReadableState {\n objectMode: ' + 'false,\n highWaterMark: 16384,\n buffer: BufferList { ' + 'head: null, tail: null, length: 0 },\n length: 0,\n ' + 'pipes: null,\n pipesCount: 0,\n flowing: true,\n ' + ' ended: false,\n endEmitted: false,\n reading: ' + 'true,\n sync: false,\n needReadable: true,\n ' + ' emittedReadable: false,\n readableListening: false,\n ' + ' resumeScheduled: false,\n paused: false,\n emitClose: ' + 'false,\n autoDestroy: false,\n destroyed: true,\n ' + " defaultEncoding: 'utf8',\n awaitDrain: 0,\n " + 'readingMore: false,\n decoder: null,\n encoding: null ' + '},\n readable: false,\n _events:\n [Object: null ' + 'prototype] {\n end: [Function: onReadableStreamEnd],\n ' + 'connect: [ [Function], [Function], [Function] ],\n free: ' + '[Function: onFree],\n close: [ [Function: onClose], [Function: ' + 'socketCloseListener] ],\n agentRemove: [Function: onRemove],\n ' + ' drain: [Function: ondrain],\n error: [Function: ' + 'socketErrorListener] },\n _eventsCount: 7,\n _maxListeners: ' + 'undefined,\n _writableState:\n WritableState {\n ' + ' objectMode: false,\n highWaterMark: 16384,\n ' + 'finalCalled: false,\n needDrain: false,\n ending: ' + 'false,\n ended: false,\n finished: false,\n ' + ' destroyed: true,\n decodeStrings: false,\n ' + "defaultEncoding: 'utf8',\n length: 262,\n writing: " + 'true,\n corked: 0,\n sync: false,\n ' + 'bufferProcessing: false,\n onwrite: [Function: bound onwrite],\n ' + ' writecb: [Function: bound onCorkedFinish],\n writelen: ' + '262,\n bufferedRequest: null,\n lastBufferedRequest: ' + 'null,\n pendingcb: 3,\n prefinished: false,\n ' + ' errorEmitted: true,\n emitClose: false,\n ' + 'autoDestroy: false,\n bufferedRequestCount: 0,\n ' + 'corkedRequestsFree: { next: null, entry: null, finish: [Function: bound ' + 'onCorkedFinish] } },\n writable: false,\n allowHalfOpen: ' + 'false,\n _sockname: null,\n _pendingData:\n [ { ' + "chunk:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n encoding: 'latin1',\n isBuf: " + 'false,\n callback: [Function: nop],\n next: ' + '[Object] },\n { chunk:\n ,\n ' + " encoding: 'buffer',\n isBuf: true,\n " + 'callback: [Function],\n next: null },\n allBuffers: ' + "false ],\n _pendingEncoding: '',\n server: null,\n " + '_server: null,\n parser: null,\n _httpMessage: [Circular],\n ' + ' [Symbol(asyncId)]: 155,\n [Symbol(kHandle)]: null,\n ' + ' [Symbol(lastWriteQueueSize)]: 0,\n [Symbol(timeout)]: null,\n ' + ' [Symbol(kBytesRead)]: 0,\n [Symbol(kBytesWritten)]: 0 },\n ' + "_header:\n 'POST /api/login HTTP/1.1\\r\\nAccept: application/json, " + 'text/plain, */*\\r\\nContent-Type: application/json;charset=utf-8\\r\\nUser-Agent: ' + 'axios/0.18.0\\r\\nContent-Length: 58\\r\\nHost: localhost:8080\\r\\nConnection: ' + "close\\r\\n\\r\\n',\n _onPendingData: [Function: noopPendingOutput],\n " + 'agent:\n Agent {\n _events: [Object: null prototype] { free: ' + '[Function] },\n _eventsCount: 1,\n _maxListeners: undefined,\n' + " defaultPort: 80,\n protocol: 'http:',\n options: " + '{ path: null },\n requests: {},\n sockets: { ' + "'localhost:8080:': [ [Socket] ] },\n freeSockets: {},\n " + 'keepAliveMsecs: 1000,\n keepAlive: false,\n maxSockets: ' + 'Infinity,\n maxFreeSockets: 256 },\n socketPath: undefined,\n ' + " timeout: undefined,\n method: 'POST',\n path: '/api/login',\n " + ' _ended: false,\n res: null,\n aborted: false,\n ' + 'timeoutCb: null,\n upgradeOrConnect: false,\n parser: null,\n ' + ' maxHeadersCount: null,\n _redirectable: [Circular],\n ' + '[Symbol(isCorked)]: false,\n [Symbol(outHeadersKey)]:\n [Object: ' + "null prototype] {\n accept: [ 'Accept', 'application/json, " + "text/plain, */*' ],\n 'content-type': [ 'Content-Type', " + "'application/json;charset=utf-8' ],\n 'user-agent': [ 'User-Agent', " + "'axios/0.18.0' ],\n 'content-length': [ 'Content-Length', 58 ],\n " + " host: [ 'Host', 'localhost:8080' ] } },\n _currentUrl: " + "'http://localhost:8080/api/login' },\n response: undefined }" }