My Vue 2.0 application communicates with the backend through axios httpRequest. Occasionally, when the server is overloaded, I encounter the following message in the console:
xhr.js:220 POST https://backend/api?param=myparam 503
I want to find a way to hide this message.
I attempted to use the suggested configuration from the official documentation while concurrently resolving an array of promises:
// Add Promise to promiseArray
promiseArray.push(
axios.get("/api?param=myparam",
{
validateStatus: () => true
}
)
// Manage Concurrency
Promise.all(promiseArray)
However, the 503 error message still persists in the console...