fix: Catch Iframely non-json response correctly in lib.

closes #7306
This commit is contained in:
Tom Moor
2024-07-27 09:49:56 -04:00
parent ae80128396
commit 738449a7d0
+1 -1
View File
@@ -22,7 +22,7 @@ class Iframely {
env.IFRAMELY_API_KEY
}`
);
return res.json();
return await res.json();
} catch (err) {
Logger.error(`Error fetching data from Iframely for url: ${url}`, err);
return;