linkedin-jobs-scraper
linkedin-jobs-scraper copied to clipboard
Protocol error (Target.closeTarget): Target closed. when I set headless to false
when headless is set to false scraper runs in anonymous mode but when I try to run it with headless false, After printing some information about browser scraper throws this error.
ProtocolError: Protocol error (Target.closeTarget): Target closed.
at {WORKSPACE DIR}/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:103:24
at new Promise (
ProtocolError: Protocol error (Target.closeTarget): Target closed.
at {WORKSPACE DIR}/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:103:24
at new Promise (
I have used a puppeteer. This error normally occurs when the browser/page closes and we want to perform an action after closing. But in this case I just copied sample code from github and tried to run. I am not able to understand what's the problem