From 2e4c0b4fc127f53387d3b2c35f29a5d2b893ef24 Mon Sep 17 00:00:00 2001 From: Gadi Cohen Date: Thu, 30 May 2024 12:15:41 +0300 Subject: [PATCH] fix(getCrumb): ignore (but log) unexpected redirect (fixes #777) --- src/lib/getCrumb.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/getCrumb.ts b/src/lib/getCrumb.ts index f1f1e702..66e7f591 100644 --- a/src/lib/getCrumb.ts +++ b/src/lib/getCrumb.ts @@ -223,9 +223,15 @@ export async function _getCrumb( ); } } else { - throw new Error( - "Unsupported redirect to " + location + ", please report." + console.error( + "We expected a redirect to guce.yahoo.com, but got " + location ); + console.error( + "We'll try to continue anyway - you can safely ignore this if the request succeeds" + ); + // throw new Error( + // "Unsupported redirect to " + location + ", please report."); + // ) } }