Open jwingo1015 opened 8 years ago
sample request code: describe('post_callrequest', function() { it('should respond with 201 201 response', function(done) { request(app) .post('https://********/callrequests') .form({json: '{"categoryId":1}'}) .headers('authorization', token) .expect(201) .end(function(err, res, body) { if (err) return done(err); done(); }); });
And i receive the following error message: Error: connect ECONNREFUSED 127.0.0.1:80
Wondering what exactly am i doing wrong here?
sample request code: describe('post_callrequest', function() { it('should respond with 201 201 response', function(done) { request(app) .post('https://********/callrequests') .form({json: '{"categoryId":1}'})
.headers('authorization', token) .expect(201) .end(function(err, res, body) { if (err) return done(err); done(); }); });
And i receive the following error message: Error: connect ECONNREFUSED 127.0.0.1:80
Wondering what exactly am i doing wrong here?