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

Hero hangs after completing captcha #342

Open
vihangatheturtle opened this issue Dec 9, 2024 · 0 comments
Open

Hero hangs after completing captcha #342

vihangatheturtle opened this issue Dec 9, 2024 · 0 comments

Comments

@vihangatheturtle
Copy link

Hi, I am attempting to complete a Datadome captcha using the audio solution for it.

I have successfully entered the correct value for the audio solve. But the page produces this error after completing it (terminal output):

{
  name: 'datadome',
  value: 'PrTxLga4vUs6T~~iU2Kaq31~HJUB4Ol1bAN69qrcBK0N4VwR0RgCFnS9yBwhbBbauF3X~fGNa~fMJ7dxqE9fHxnAxpVecL5_h88HMqKj~OFHKw_3mL3ooTLZPp3CiTWN',
  secure: true,
  sameSite: 'Lax',
  sameParty: false,
  expires: '2025-12-09T12:11:01.911Z',
  httpOnly: false,
  path: '/',
  domain: '.liverpoolfc.com'
}
2024-12-09T12:12:02.436Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TimeoutError: DevtoolsApiMessage did not respond after 60 seconds. (Page.getLayoutMetrics, id=472)
  at new Resolvable (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/commons/lib/Resolvable.ts:19:18)
    at createPromise (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/commons/lib/utils.ts:152:10)
    at DevtoolsSession.send (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/agent/main/lib/DevtoolsSession.ts:84:37)
    at Page.screenshot (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/agent/main/lib/Page.ts:444:56)
    at Tab.takeScreenshot (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/core/lib/Tab.ts:627:22)
    at CommandRecorder.runCommandFn (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/core/lib/CommandRecorder.ts:90:32)
    at async CommandRunner.runFn (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/core/lib/CommandRunner.ts:36:14)
    at async ConnectionToHeroClient.executeCommand (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/core/connections/ConnectionToHeroClient.ts:258:12)
    at async ConnectionToHeroClient.handleRequest (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/core/connections/ConnectionToHeroClient.ts:66:14)
------REMOTE CORE---------------------------------
  at Function.reviver (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/commons/lib/TypeSerializer.ts:253:26)
    at JSON.parse (<anonymous>)
    at Function.parse (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/commons/lib/TypeSerializer.ts:31:17)
    at WsTransportToCore.onMessage (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/net/lib/WsTransportToCore.ts:111:36)
    at WebSocket.emit (node:events:519:28)
    at Receiver.receiverOnMessage (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1220:20)
    at Receiver.emit (node:events:519:28)
    at Receiver.dataMessage (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/[email protected]/node_modules/ws/lib/receiver.js:596:14)
    at /workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/[email protected]/node_modules/ws/lib/receiver.js:530:12
    at /workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/[email protected]/node_modules/ws/lib/permessage-deflate.js:309:9
------CONNECTION----------------------------------
  at new Resolvable (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/commons/lib/Resolvable.ts:19:18)
    at createPromise (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/commons/lib/utils.ts:152:10)
    at PendingMessages.create (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/net/lib/PendingMessages.ts:47:44)
    at ConnectionToHeroCore.sendRequest (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/net/lib/ConnectionToCore.ts:161:50)
    at async CoreCommandQueue.sendRequest (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/client/lib/CoreCommandQueue.ts:317:12)
    at async Object.cb (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/client/lib/CoreCommandQueue.ts:231:16)
    at async Queue.next (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/commons/lib/Queue.ts:188:19)
------CORE COMMANDS-------------------------------
    at Queue.run (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/commons/lib/Queue.ts:63:19)
    at CoreCommandQueue.run (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/client/lib/CoreCommandQueue.ts:220:8)
    at CoreTab.takeScreenshot (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/client/lib/CoreTab.ts:299:36)
    at Tab.takeScreenshot (/workspaces/ahaych-liverpool-auto-atc-service/node_modules/.pnpm/@[email protected]/node_modules/client/lib/Tab.ts:252:20)

--------------------------------------------------
--------------------------------------------------
------JbQVQz75Mt8O_zd0EdNSz-----------------------
--------------------------------------------------

This error originates from the interval created so I can see the page as it updates:

console.log(await hero.activeTab.cookieStorage.getItem("datadome"));

writeFileSync("pppp.png", await hero.takeScreenshot({
    format: "png",
    fullPage: true,
}));

setInterval(async () => {
    try { await hero.waitForPaintingStable({
        timeoutMs: 3e3
    });} catch { }

    console.log(await hero.activeTab.cookieStorage.getItem("datadome"));

    writeFileSync("pppp.png", await hero.takeScreenshot({
        format: "png",
        fullPage: true,
    }));
}, 1000);
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

1 participant