File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ async def init(self):
392
392
self .logger .debug (f"Environment: { self .env } " )
393
393
394
394
# Always initialize playwright with timeout to avoid hanging
395
- # This ensures compatibility with strict event loop environments like Langgraph
395
+ # This ensures compatibility with strict event loop environments
396
396
self ._playwright = await self ._init_playwright_with_timeout ()
397
397
398
398
if self .env == "BROWSERBASE" :
@@ -457,7 +457,7 @@ async def _init_playwright_with_timeout(self):
457
457
Initialize playwright with a timeout to avoid hanging in strict event loop environments.
458
458
459
459
This method adds a timeout to the regular async_playwright().start() to prevent
460
- hanging in environments like Langgraph that restrict blocking operations.
460
+ hanging in environments that restrict blocking operations.
461
461
"""
462
462
self .logger .debug ("Starting playwright initialization with timeout..." )
463
463
@@ -476,8 +476,7 @@ async def _init_playwright_with_timeout(self):
476
476
self .logger .error ("Playwright initialization timed out" )
477
477
raise RuntimeError (
478
478
"Playwright initialization timed out after 30 seconds. This may indicate "
479
- "your environment has strict event loop restrictions. If using Langgraph, "
480
- "consider using the --allow-blocking flag."
479
+ "your environment has strict event loop restrictions."
481
480
)
482
481
except Exception as e :
483
482
self .logger .error (f"Failed to initialize playwright: { e } " )
You can’t perform that action at this time.
0 commit comments