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

I'VE FIXED ALL THE BUGS / ERRORS. #106

Open
Pudochu opened this issue May 21, 2024 · 2 comments
Open

I'VE FIXED ALL THE BUGS / ERRORS. #106

Pudochu opened this issue May 21, 2024 · 2 comments

Comments

@Pudochu
Copy link

Pudochu commented May 21, 2024

I fixed all the bugs on ‘src\core\proxy.js’.

Here: Pudochu@30bfe18

If you encounter some bugs, let me know here - I will fix them.

@poolkoleg
Copy link

poolkoleg commented May 24, 2024

Load page...
Unhandled Rejection at: TypeError: No proxy handler found for target type: CdpHTTPRequest
at useProxy (/root/Twitch/node_modules/puppeteer-page-proxy/src/core/proxy.js:87:19)
at /root/Twitch/start.js:266:9
at /root/Twitch/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:238:32
at async CdpHTTPRequest.finalizeInterceptions (/root/Twitch/node_modules/puppeteer-core/lib/cjs/puppeteer/api/HTTPRequest.js:147:9)

If you encounter some bugs, let me know here - I will fix them.

@Pudochu
Copy link
Author

Pudochu commented Jun 8, 2024

Load page... Unhandled Rejection at: TypeError: No proxy handler found for target type: CdpHTTPRequest at useProxy (/root/Twitch/node_modules/puppeteer-page-proxy/src/core/proxy.js:87:19) at /root/Twitch/start.js:266:9 at /root/Twitch/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:238:32 at async CdpHTTPRequest.finalizeInterceptions (/root/Twitch/node_modules/puppeteer-core/lib/cjs/puppeteer/api/HTTPRequest.js:147:9)

If you encounter some bugs, let me know here - I will fix them.

use : npm i @lem0-packages/puppeteer-page-proxy

const puppeteer = require('puppeteer');
const useProxy = require("@lem0-packages/puppeteer-page-proxy");
(async () => {
  const browser = await puppeteer.launch({
    headless: false,
  });

  const page = await browser.newPage();

  await page.setRequestInterception(true);
  page.on('request', async (request) => {
      await useProxy(request, 'http://TYPE_YOUR@PROXY_HERE:8000');
  });
  
  await page.goto('https://ipinfo.io');
})();

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