From b727a56d6793cb7f3440a2dab310c0e79a401058 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 1 Sep 2024 14:39:28 +0600 Subject: [PATCH] api/bluesky: catch fetch errors (oops) --- api/src/processing/services/bluesky.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/processing/services/bluesky.js b/api/src/processing/services/bluesky.js index 6a553359..0d0b5b41 100644 --- a/api/src/processing/services/bluesky.js +++ b/api/src/processing/services/bluesky.js @@ -7,7 +7,7 @@ const extractVideo = async ({ getPost, filename }) => { const masterHLS = await fetch(urlMasterHLS) .then(r => r.text()) - .catch(); + .catch(() => {}); if (!masterHLS) return { error: "fetch.fail" }; const video = HLS.parse(masterHLS) @@ -37,7 +37,7 @@ export default async function ({ user, post }) { } }) .then(r => r.json()) - .catch(); + .catch(() => {}); if (!getPost || getPost?.error) return { error: "fetch.empty" };