Closed srph closed 8 years ago
I get this error { [Error: socket hang up] code: 'ECONNRESET' }, as I ran faux-jax.
{ [Error: socket hang up] code: 'ECONNRESET' }
faux-jax
Here's my code:
var expect = require('chai').expect; var faux = require('faux-jax'); var axios = require('axios'); describe('axios-base-url interceptor', function() { it('should not append the base-url if request url is absolute', function(done) { faux.install(); axios.get('http://swag.com/hehe').then(done, done); faux.on('request', function(request) { request.respond(200, { 'Content-Type': 'text/plain' }, ''); faux.restore(); }); }); });
I'm not sure if this is related to axios as it simply uses http when in node under the hood.
http
Check out this repo
Thanks for the bug report, should be better now, let me now (upgrade to v4.2.2)
I get this error
{ [Error: socket hang up] code: 'ECONNRESET' }
, as I ranfaux-jax
.Here's my code:
I'm not sure if this is related to axios as it simply uses
http
when in node under the hood.Demo
Check out this repo