As seen in apify/actor-scraper#236, the internal CookieJar can throw on a deformed Set-Cookie response from the server.
This error is now not caught anywhere and will kill the entire script if used, e.g., from a helper function (like discoverValidSitemaps).
We should treat all CookieJar methods as potentially throwing and only print warnings on thrown errors.
As seen in apify/actor-scraper#236, the internal
CookieJarcan throw on a deformedSet-Cookieresponse from the server.This error is now not caught anywhere and will kill the entire script if used, e.g., from a helper function (like
discoverValidSitemaps).We should treat all
CookieJarmethods as potentially throwing and only print warnings on thrown errors.