Skip to content

Commit

Permalink
fix(getCrumb): ignore (but log) unexpected redirect (fixes #777)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed May 30, 2024
1 parent 62ad399 commit 2e4c0b4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/lib/getCrumb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
// )
}
}

Expand Down

0 comments on commit 2e4c0b4

Please sign in to comment.