Closed nfriend closed 4 years ago
The code will be ECONNABORTED
: https://github.com/ctimmerm/axios-mock-adapter/blob/master/src/index.js#L138-L148
If it's ECONNREFUSED
it's not coming from axios-mock-adapter.
I am experiencing the same behavior, but only with POST, PUT, DELETE.
GET works exactly how I expect it to. Even if it isn't related to the package, are there any hints as to where it would be coming from?
@zdelagrange find a solution? only happens when mocking POST
According to the README:
However, I'm seeing an
err.code
ofECONNREFUSED
instead. Here's theerr
object that's given to my.catch()
block:Which code is expected from
.timeout()
?