kkoooqq / fakebrowser

🤖 Fake fingerprints to bypass anti-bot systems. Simulate mouse and keyboard operations to make behavior like a real person.
GNU Lesser General Public License v3.0
1.09k stars 210 forks source link

ERR_TOO_MANY_REDIRECTS #40

Closed Baker68 closed 2 years ago

Baker68 commented 2 years ago

I am trying to run demo3-fake-user-action.js and it outputs :

This instance has been shutdown and turned into a zombie.
(node:39241) UnhandledPromiseRejectionWarning: Error: net::ERR_TOO_MANY_REDIRECTS at https://google.com/
    at navigate (/home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:155:23)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async FrameManager.navigateFrame (/home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:130:21)
    at async Frame.goto (/home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:500:16)
    at async Page.goto (/home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:1167:16)
    at async /home/pcb/Desktop/tools/fakebrowser/fakebrowser/demo/demo3-fake-user-action.js:16:9
(node:39241) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:39241) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

what am I doing wrong ? Thanks in advance

kkoooqq commented 2 years ago

NodeJS version? OS Version?

Baker68 commented 2 years ago

@kkoooqq node v12.22.7 npm v7.24.2 OS Linux ROG-Strix-G712LU-G712LU 5.11.0-44-generic #48~20.04.2-Ubuntu SMP Tue Dec 14 15:36:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

I've just installed a Win10 virtual machine, and it works on Windows

Using node v14.18.2 throws this error :

(node:31093) UnhandledPromiseRejectionWarning: ProtocolError: Protocol error (Emulation.setTouchEmulationEnabled): Target closed.
    at /home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:226:24
    at new Promise (<anonymous>)
    at CDPSession.send (/home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:222:16)
    at next (/home/pcb/Desktop/tools/fakebrowser/node_modules/fakebrowser/dist/plugins/evasions/sourceurl/index.js:32:53)
    at CDPSession.send (/home/pcb/Desktop/tools/fakebrowser/node_modules/fakebrowser/dist/plugins/evasions/sourceurl/index.js:58:28)
    at EmulationManager.emulateViewport (/home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/EmulationManager.js:27:26)
    at Page.setViewport (/home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:1758:58)
    at FakeBrowser.interceptPage (/home/pcb/Desktop/tools/fakebrowser/node_modules/fakebrowser/dist/cjs/FakeBrowser.js:288:20)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async FakeBrowser.onTargetCreated (/home/pcb/Desktop/tools/fakebrowser/node_modules/fakebrowser/dist/cjs/FakeBrowser.js:200:13)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:31093) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:31093) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:31093) UnhandledPromiseRejectionWarning: Error: net::ERR_TOO_MANY_REDIRECTS at https://bit.ly/3n3UzSb
    at navigate (/home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:155:23)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async FrameManager.navigateFrame (/home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:130:21)
    at async Frame.goto (/home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:500:16)
    at async Page.goto (/home/pcb/Desktop/tools/fakebrowser/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:1167:16)
    at async /home/pcb/Desktop/tools/fakebrowser/test.js:24:9
(node:31093) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
b14aa178 commented 2 years ago

Same problem with proxy enable. but it's ok to open other sites. seems there are some antibot.

npm 6.14.15

node v14.18.1

版本 Windows 10 专业版 版本号 21H2 安装日期 ‎2021/‎11/‎12 操作系统内部版本 19044.1415 体验 Windows Feature Experience Pack 120.2212.3920.0

kkoooqq commented 2 years ago

Same problem with proxy enable. but it's ok to open other sites. seems there are some antibot.

npm 6.14.15

node v14.18.1

版本 Windows 10 专业版 版本号 21H2 安装日期 ‎2021/‎11/‎12 操作系统内部版本 19044.1415 体验 Windows Feature Experience Pack 120.2212.3920.0

You could open a new issue to discuss this.