🐛 Fix Ignore Response Code issue

This commit is contained in:
Jan Oberhauser 2021-10-19 16:45:59 -05:00
parent c3e3d9d46e
commit e05d0a5286

View file

@ -444,6 +444,10 @@ async function proxyRequestToAxios(
}); });
return; return;
} }
if (configObject.simple === false && error.response) {
resolve(error.response.data);
return;
}
Logger.debug('Request proxied to Axios failed', { error }); Logger.debug('Request proxied to Axios failed', { error });
// Axios hydrates the original error with more data. We extract them. // Axios hydrates the original error with more data. We extract them.