When making an HTTP post request using axios, I am encountering an issue where the body of the response is a large 4MB string.
axios({
method: 'POST',
url: url,
data: data,
headers : headers,
})
.then(function (response) {
console.log(response);
});
In the browser, when calling this function, the response is truncated to 1024 characters (the full response can be seen in the Network tab).
Interestingly, when running this function in the terminal with Node, I receive the entire response without truncation.
I am looking for a way to retrieve the complete response in my JavaScript code when executing from the browser. Any suggestions on how to achieve this?