await axios
.post(
executeBatch,
{
headers: {
"Content-Type": "application/json",
"x-access-token": localStorage.getItem("token"),
},
}
)
.then(
(response) =>
this.$store.commit(
"insertOutputFile",
response.data.outputFile._id
),
);
alert("You can download the result");
I have encountered situations where I receive an empty response with a status code of 200. My solution to this potential issue is to consider retrying the request if it happens. I am now seeking advice on the best approach to handle this scenario.