question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] "TypeError: page._client.send is not a function" when running npx extract-stealth-evasions

See original GitHub issue

Describe the bug When running npx extract-stealth-evasions on a variety of systems (PopOS 22 locally), I receive the error:

TypeError: page._client.send is not a function
    at Plugin.onPageCreated (/home/ian/.npm/_npx/352800/lib/node_modules/extract-stealth-evasions/node_modules/puppeteer-extra-plugin-stealth/evasions/user-agent-override/index.js:180:18)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Plugin._onTargetCreated (/home/ian/.npm/_npx/352800/lib/node_modules/extract-stealth-evasions/node_modules/puppeteer-extra-plugin/dist/index.cjs.js:496:21)

If I exclude the user-agent-override evasion, the command runs successfully.

Code Snippet

Versions

  System:
    OS: Linux 5.17 Pop!_OS 22.04 LTS
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 6.48 GB / 30.98 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 14.9.0 - /usr/local/bin/node
    Yarn: 1.22.5 - /usr/bin/yarn
    npm: 6.14.8 - /usr/local/bin/npm

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
alecellis1985commented, Jul 13, 2022

const client = await page.target().createCDPSession(); await client .send(‘Page.setDownloadBehavior’, { behavior: ‘allow’, downloadPath: dir, }); tested in our production and it works fine

8reactions
aemlacommented, Jun 15, 2022

Try to downgrade to puppeteer 14.3.0. It solved TypeError: page._client.send is not a function error for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does page._client do in Puppeteer? - node.js
client = await page.target().createCDPSession() await client.send('');.
Read more >
SFN Client - AWS SDK for JavaScript v3
AWS SDK for JavaScript SFN Client for Node.js, Browser and React Native. ... Step Functions is a service that lets you coordinate the...
Read more >
Getting started in Node.js - Amazon SDK for JavaScript
The example shows how to set up and run a simple Node.js module that creates an Amazon S3 bucket, then adds a text...
Read more >
puppeteer.Page._client JavaScript and Node.js code examples
await page._client.send('Emulation.clearDeviceMetricsOverride');
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found