diff --git a/app/utils/sendStatusOtherSystem.js b/app/utils/sendStatusOtherSystem.js index 1f7c4ef..890620e 100644 --- a/app/utils/sendStatusOtherSystem.js +++ b/app/utils/sendStatusOtherSystem.js @@ -955,6 +955,7 @@ const checkMultipleRequest = async () => { }; const promises = requests.map(async (req, index) => { + try { if (req.method === "POST") { let response = await axios.post(req.url, req.data, { headers: req.headers, @@ -1137,6 +1138,16 @@ const checkMultipleRequest = async () => { }); } } + } catch (error) { + console.log("Error:", error); + report.push({ + group: req.group, + name: req.name, + status: ":red_circle:", + code: "bad", + lengthOrData: "Error: " + error, + }); + } }); await Promise.all(promises);