From d8ad19c650b7c95d05bb405a727b7c2a4722ac11 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 12 Feb 2024 12:41:41 +0100 Subject: [PATCH] Puppeteer - setting cache enabled should be awaited --- changedetectionio/content_fetchers/puppeteer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/content_fetchers/puppeteer.py b/changedetectionio/content_fetchers/puppeteer.py index 87f4985c..6b44f012 100644 --- a/changedetectionio/content_fetchers/puppeteer.py +++ b/changedetectionio/content_fetchers/puppeteer.py @@ -105,7 +105,7 @@ class fetcher(Fetcher): # SOCKS5 with authentication is not supported (yet) # https://github.com/microsoft/playwright/issues/10567 self.page.setDefaultNavigationTimeout(0) - self.page.setCacheEnabled(True) + await self.page.setCacheEnabled(True) if self.proxy: # Setting Proxy-Authentication header is deprecated, and doing so can trigger header change errors from Puppeteer # https://github.com/puppeteer/puppeteer/issues/676 ?