Skip to content

[Bug]: playwright._impl._errors.TargetClosedError: BrowserType.launch: Target page, context or browser has been closed #895

@kivous

Description

@kivous

crawl4ai version

0.5.0.post8

Expected Behavior

I am trying to execute AsyncWebCrawler().arun(with configs) with headless=True for multiple urls executed one after another, and it should return the markdown content of the url for all the urls given.

Current Behavior

I am trying to execute AsyncWebCrawler().arun(with configs) with headless=True for multiple urls executed one after another, and its failing with the mentioned error after the first run. In 0.5.0.post6 it works fine.

Is this reproducible?

Yes

Inputs Causing the Bug

Steps to Reproduce

Code snippets

OS

Ubuntu

Python version

3.10.16

Browser

No response

Browser version

No response

Error logs & Screenshots (if applicable)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions