Coder Social home page Coder Social logo

Destroy Session Error (disconnected: not connected to DevTools) and hung chrome.exe/chromedriver.exe processes about flaresolverr HOT 4 OPEN

sunnyd24 avatar sunnyd24 commented on July 22, 2024
Destroy Session Error (disconnected: not connected to DevTools) and hung chrome.exe/chromedriver.exe processes

from flaresolverr.

Comments (4)

ilike2burnthing avatar ilike2burnthing commented on July 22, 2024

url and maxTimeout aren't needed when creating and destroying sessions.

Using your format, I can reproduce the error. However, when using the format from our example, there's no error - https://github.com/FlareSolverr/FlareSolverr#usage

Removing -UseBasicParsing from our example results in the same error.

-UseBasicParsing has been deprecated in PS v6 onwards, as it's the default behaviour (to not run script code when HTML is parsed). Either use PS v6/7 (v5 is default in Windows), or use -UseBasicParsing.

from flaresolverr.

sunnyd24 avatar sunnyd24 commented on July 22, 2024

@ilike2burnthing Thanks for your checks, and note your url and maxTimeout suggestions, I have amended this.

I am using PowerShell 7.4.2, but the error persists, whether I use -UseBasicParsing or not using my script.

Even using the powershell example below, I have the same error:

$body = @{
    cmd = "request.get"
    url = "http://www.google.com/"
    maxTimeout = 60000
} | ConvertTo-Json

irm -UseBasicParsing 'http://localhost:8191/v1' -Headers @{"Content-Type"="application/json"} -Method Post -Body $body

Error:

Invoke-RestMethod:
{
  "status": "error",
  "message": "Error: Message: disconnected: not connected to DevTools\n  (failed to check if window was closed: disconnected: not connected to DevTools)\n  (Session info: chrome=123.0.6300.0)\nStacktrace:\n\tGetHandleVerifier [0x00B64CA3\u002B225091]\n\t(No symbol) [0x00A94DF1]\n\t(No symbol) [0x00939A7A]\n\t(No symbol) [0x009294DC]\n\t(No symbol) [0x00929B3D]\n\t(No symbol) [0x00939ED7]\n\t(No symbol) [0x0091E00D]\n\t(No symbol) [0x0099ABA7]\n\t(No symbol) [0x0099A7BB]\n\t(No symbol) [0x0098F523]\n\t(No symbol) [0x009679B9]\n\t(No symbol) [0x0096879D]\n\tsqlite3_dbdata_init [0x00FD9A43\u002B4064547]\n\tsqlite3_dbdata_init [0x00FE104A\u002B4094762]\n\tsqlite3_dbdata_init [0x00FDB948\u002B4072488]\n\tsqlite3_dbdata_init [0x00CDC9A9\u002B930953]\n\t(No symbol) [0x00AA07C4]\n\t(No symbol) [0x00A9ACE8]\n\t(No symbol) [0x00A9AE11]\n\t(No symbol) [0x00A8CA80]\n\tBaseThreadInitThunk [0x77347BA9\u002B25]\n\tRtlInitializeExceptionChain [0x77E2C10B\u002B107]\n\tRtlClearBits [0x77E2C08F\u002B191]\n",
  "startTimestamp": 1719155635311,
  "endTimestamp": 1719155638583,
  "version": "3.3.19"
}

I will update to 3.3.20 meanwhile.

Any ideas?

from flaresolverr.

sunnyd24 avatar sunnyd24 commented on July 22, 2024

Same issue with 3.3.20.

However, I have isolated this error to an environment variable "headless=false", and "headless=true" seems to work fine.

Likely to be something in the code that has affected this at some point?

from flaresolverr.

ilike2burnthing avatar ilike2burnthing commented on July 22, 2024

I'm unable to reproduce your issue.

Using a clean Windows Sandbox I download and extract FlareSolverr, run the example PS command, and I get normal output. Stopping FlareSolverr, setting headless=false, starting FlareSolverr again, and rerunning the script, I still get normal output.

Can you provide debug FS logs of the issue?

from flaresolverr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.