TypeError: Cannot read property 'replace' of undefined at /var/www/Production/Admin/server.js:6305:59 at /var/www/Production/Admin/node_modules/node-rest-client/lib/node-rest-client.js:539:13 at Object.parse (/var/www/Production/Admin/node_modules/node-rest-client/lib/nrc-parser-manager.js:142:13) at ConnectManager.handleResponse (/var/www/Production/Admin/node_modules/node-rest-client/lib/node-rest-client.js:538:32) at ConnectManager.handleEnd (/var/www/Production/Admin/node_modules/node-rest-client/lib/node-rest-client.js:531:18) at IncomingMessage. (/var/www/Production/Admin/node_modules/node-rest-client/lib/node-rest-client.js:678:34) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29)