-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
[Bug]: Unable to execute arun_many with managed browsers and cdp #1563
Copy link
Copy link
Closed
Labels
⏰-spill-overIssues that were picked up in past sprints, but couldn't completeIssues that were picked up in past sprints, but couldn't complete⚙ DoneBug fix, enhancement, FR that's completed pending releaseBug fix, enhancement, FR that's completed pending release🐞 BugSomething isn't workingSomething isn't working📌 Root causedidentified the root cause of bugidentified the root cause of bug
Milestone
Metadata
Metadata
Assignees
Labels
⏰-spill-overIssues that were picked up in past sprints, but couldn't completeIssues that were picked up in past sprints, but couldn't complete⚙ DoneBug fix, enhancement, FR that's completed pending releaseBug fix, enhancement, FR that's completed pending release🐞 BugSomething isn't workingSomething isn't working📌 Root causedidentified the root cause of bugidentified the root cause of bug
crawl4ai version
v0.7.6
Expected Behavior
Hello ! I am trying to use crawl4ai for concurrent authenticated crawling. However, I'm running into errors when combining cdp with arun_many.
In terminal, I launched a browser using cli:
crwl cdp -d /home/user/.crawl4ai/profiles/A new instance was launched, I confirmed I could interact with it using native playwright.
Crawl4ai script:
Expectaed behaviour: multiple tabs should open in chromium and the crawls are executed in parallel.
Current behaviour: only one tab is opened, only one crawl is finished, the rest runs into errors.
Current Behavior
Only one tab is opened, only one crawl is finished, the rest runs into errors.
I think the bug might be coming from a race condition in the browser manager, all sessions are competing over the same page.
crawl4ai/crawl4ai/browser_manager.py
Line 1055 in 40173ee
Is this reproducible?
Yes
Inputs Causing the Bug
Steps to Reproduce
Code snippets
OS
Linux
Python version
3.11
Browser
No response
Browser version
No response
Error logs & Screenshots (if applicable)
No response