Use 'url' instead of 'host'. I'm assuming from the inline comment, it is a full url to the endpoint of the api.
exports.defaultOptions = function(){
return {
url: config.apiHost, // API url to connect too
headers: { 'Content-Type': 'application/json' },
method: 'POST', // Default method
port: config.apiPort, // API port number to connect too
proxy: 'http://192.168.2.183:8888'
};
};
From docs : uri || url - fully qualified uri or a parsed url object from