diff --git a/services/scraper/index.js b/services/scraper/index.js index 59faa8bf0..e8a51d337 100644 --- a/services/scraper/index.js +++ b/services/scraper/index.js @@ -75,6 +75,12 @@ const scraper = { }); const html = await res.text(); + if (!res.ok) { + let err = new Error(res.statusText); + err.response = res; + throw err; + } + // Get the metadata from the scraped html. const meta = await metascraper({ html,