From 8be00292606b397b2215c3c7f8e10ab22fdd2f85 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 11 Jan 2024 10:12:00 +0100 Subject: [PATCH] Browser Steps - Fixing "'Response' object is not subscriptable" where quotes were used in connection URL - Quote wrapped URL for browserstep url was breaking the connection #1627 #1823 #2099 (#2100) --- changedetectionio/blueprint/browser_steps/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/blueprint/browser_steps/__init__.py b/changedetectionio/blueprint/browser_steps/__init__.py index b58eedee8fa..227c8ec2418 100644 --- a/changedetectionio/blueprint/browser_steps/__init__.py +++ b/changedetectionio/blueprint/browser_steps/__init__.py @@ -58,7 +58,7 @@ def start_browsersteps_session(watch_uuid): io_interface_context = io_interface_context.start() keepalive_ms = ((keepalive_seconds + 3) * 1000) - base_url = os.getenv('PLAYWRIGHT_DRIVER_URL', '') + base_url = os.getenv('PLAYWRIGHT_DRIVER_URL', '').strip('"') a = "?" if not '?' in base_url else '&' base_url += a + f"timeout={keepalive_ms}"