Skip to content

Curl error thrown for http DELETE to /session/xxxx #677

@ElGabbu

Description

@ElGabbu

I am using panther with chromedriver. I use it in a Symfony command to scrape a webpage.

$default_arguments = [
    "--headless",
    "--window-size=1280,1024",
    "--disable-gpu",
    "--no-sandbox",
    "--disable-dev-shm-usage",
];

$arguments = array_merge($default_arguments, $arguments);

$client = PantherClient::createChromeClient(null, $arguments , $options);

At the termination of the command (or even if I force cancel the command mid way) I am getting this error:

In WebDriverCurlException.php line 20:
                                                                                   
  [Facebook\WebDriver\Exception\Internal\WebDriverCurlException]                   
  Curl error thrown for http DELETE to /session/f2c85b0b97dcff0c666368402bab27ec   
                                                                                   
  Failed to connect to 127.0.0.1 port 9515 after 0 ms: Couldn't connect to server  

Any suggestion of why this happens? It would seem like the chromedriver api listening on port 9515 shutdown before that DELETE endpoint is called. But I m not sure why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions