From 738449a7d03df0eebceedfea1cb52ad7911be463 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 27 Jul 2024 09:49:56 -0400 Subject: [PATCH] fix: Catch Iframely non-json response correctly in lib. closes #7306 --- plugins/iframely/server/iframely.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/iframely/server/iframely.ts b/plugins/iframely/server/iframely.ts index 51152a608d..3d5328fcf7 100644 --- a/plugins/iframely/server/iframely.ts +++ b/plugins/iframely/server/iframely.ts @@ -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;