doug-martin / super-request

super-request is a supertest inspired HTTP assertion tester.
http://doug-martin.github.com/super-request/
MIT License
32 stars 12 forks source link

Request throws an error message #13

Open jwingo1015 opened 8 years ago

jwingo1015 commented 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?