Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No target with given id found #18

Open
karanrajpal14 opened this issue Jul 14, 2020 · 2 comments
Open

No target with given id found #18

karanrajpal14 opened this issue Jul 14, 2020 · 2 comments

Comments

@karanrajpal14
Copy link

Hello,

I am facing this weird issue where after fetching details for a few profiles, the script essentially fails. Here's what the error looks like.

Fetching data for https://www.linkedin.com/in/amiel-hussain-7a18159/
Scraper (close): Closing browser...
Scraper (close): Closed browser!
Scraper (close): Killing browser process pid: 614045...
Scraper (setup page): An error occurred during page setup.
Scraper (setup page): Protocol error (Target.attachToTarget): No target with given id found
Scraper (close): Closing browser...
Scraper (close): Closed browser!
Scraper (close): Killing browser process pid: 614045...
Scraper (run): An error occurred during a run.
Error: Protocol error (Target.attachToTarget): No target with given id found
    at /home/karan/projects/linkedin-profile-scraper-js/node_modules/puppeteer/lib/Connection.js:57:63
    at new Promise (<anonymous>)
    at Connection.send (/home/karan/projects/linkedin-profile-scraper-js/node_modules/puppeteer/lib/Connection.js:56:16)
    at Connection.createSession (/home/karan/projects/linkedin-profile-scraper-js/node_modules/puppeteer/lib/Connection.js:127:42)
    at Target._sessionFactory (/home/karan/projects/linkedin-profile-scraper-js/node_modules/puppeteer/lib/Browser.js:76:88)
    at Target.createCDPSession (/home/karan/projects/linkedin-profile-scraper-js/node_modules/puppeteer/lib/Target.js:54:21)
    at LinkedInProfileScraper.<anonymous> (/home/karan/projects/linkedin-profile-scraper-js/node_modules/linkedin-profile-scraper/dist/index.js:115:53)
    at Generator.next (<anonymous>)
    at fulfilled (/home/karan/projects/linkedin-profile-scraper-js/node_modules/tslib/tslib.js:111:62)
    at runMicrotasks (<anonymous>) {
  message: 'Protocol error (Target.attachToTarget): No target with given id found'
}
Error in setting data TypeError: Cannot read property 'userProfile' of undefined
    at generateEmail (/home/karan/projects/linkedin-profile-scraper-js/index.js:33:26)
    at /home/karan/projects/linkedin-profile-scraper-js/index.js:84:24

Any ideas on why this is happening?

@jvandenaardweg
Copy link
Contributor

jvandenaardweg commented Jul 15, 2020

Hi @karanrajpal14 , thanks for reporting. What version are you using?

I've just tried it with the latest version, and I don't see the problem happening there.

@karanrajpal14
Copy link
Author

karanrajpal14 commented Jul 16, 2020

Hello @jvandenaardweg, thank you for the response! I am on the latest version currently, i.e. v2.3.1 and this seems to be happening very often.

One thing that I forgot to mention is that this usually happens after going through about 15 profiles. For example, the error above occurred after the 17th profile or so. Is that intended? I am using a recruiter account so I certainly shouldn't have such a low limit on the number of profiles I can go through.

Are there any other logs I can provide that will help you narrow down on the issue perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants