diff --git a/lib/adapters/xhr.js b/lib/adapters/xhr.js index 76d7e7a..534a0b9 100644 --- a/lib/adapters/xhr.js +++ b/lib/adapters/xhr.js @@ -116,7 +116,7 @@ module.exports = function xhrAdapter(config) { request.onerror = function handleError() { // Real errors are hidden from us by the browser // onerror should only fire if it's a network error - reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request, request)); + reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request)); // Clean up request request = null;