From 12faca87e0fceb25faba33ca9a5bd603f3a7a75e Mon Sep 17 00:00:00 2001 From: Dmitriy Mozgovoy Date: Tue, 3 May 2022 19:30:17 +0300 Subject: [PATCH] Removed wrong argument for NetworkError constructor; (#4656) --- lib/adapters/xhr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;