Skip to content

best way to save what you love

api/bluesky: catch fetch errors (oops)

wukkob727a56d6793
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" };