ulixee / hero

The web browser built for scraping
MIT License
647 stars 32 forks source link

Use real extensions #266

Open NN-Binary opened 4 weeks ago

NN-Binary commented 4 weeks ago

Hi, I would like to add uBlock origin, is there a way?

blakebyrnes commented 4 weeks ago

Kind of, but it's a bit tricky. Hero runs in incognito mode, which makes activating extensions a pain. You can turn off incognito mode, but that restricts each chrome instance to a single Hero session, or you can automate turning on the extension in incognito mode by navigating to the extension pages as the beginning of every Hero session.

You'll need to use a plugin (https://ulixee.org/docs/hero/plugins/core-plugins) to add the chrome launch args to activate the extension. You might also need to remove '--disable-extensions' and a few other conflicting ones from the launchArgs.

class CoreHelloPlugin extends CorePlugin {
    static get id() { return 'ublock-plugin'; }

    onNewBrowser(browser, launchArgs) {
        launchArgs.push(
            `--disable-extensions-except=...`,
            `--load-extension=...`,
        )

    }
}
HeroCore.use(CoreHelloPlugin);
NN-Binary commented 2 weeks ago

Thank you!

I think this does not work


        let DirTest = '/home/user/extensions/consentomatic/';
        class CoreHelloPlugin extends CorePlugin {

            onNewBrowser(browser, launchArgs) {
                launchArgs.push(
                    `--disable-extensions-except=` + DirTest,
                    `--load-extension=` + DirTest,
                )
            }

        }

        Core.use(CoreHelloPlugin);

There is no error whatsoever, I can check also in chrome://version that the flag does not seem to be passed The path is correct, when loading it manually as dev mode, it does work.

blakebyrnes commented 2 weeks ago

Sorry, I used bad args for that example. API signature is onNewBrowser?(browser: IBrowser, userConfig: IBrowserUserConfig): void;

should be browser.engine.launchArguments.push(...

NN-Binary commented 2 weeks ago

Thank you, it works to load the extension, now an issue is that I can't seem to browse programmatically on chrome://extensions

It instantly crash: 2024-06-12T12:52:25.007Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } DisconnectedError: This transport has been disconnected (host: ws://localhost:43369/hero)

If typing manually in the address bar, it does access chrome://extensions without issue (it opens a new chrome window without incognito)

I have tried as well to await 10 seconds and go directly to chrome://extensions/?id=mdjildafknihdffpkfmmpnpoiajfjnjd, same crash.

blakebyrnes commented 2 weeks ago

Is there any other errors in the logs that say why chrome crashed (or hero crashed)?

NN-Binary commented 2 weeks ago
2024-06-12T13:16:30.160Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } DisconnectedError: This transport has been disconnected (host: ws://localhost:38185/hero)
    at ConnectionToHeroCore.onConnectionTerminated (/home/user/MARKETING/node_modules/net/lib/ConnectionToCore.ts:241:33)
    at WsTransportToCore.finalHandler (/home/user/MARKETING/node_modules/commons/lib/EventSubscriber.ts:46:14)
    at Object.onceWrapper (node:events:634:26)
    at WsTransportToCore.emit (node:events:519:28)
    at WsTransportToCore.emit (/home/user/MARKETING/node_modules/commons/lib/TypedEventEmitter.ts:158:18)
    at WsTransportToCore.disconnect (/home/user/MARKETING/node_modules/net/lib/WsTransportToCore.ts:60:10)
    at WebSocket.finalHandler (/home/user/MARKETING/node_modules/commons/lib/EventSubscriber.ts:46:14)
    at Object.onceWrapper (node:events:634:26)
    at WebSocket.emit (node:events:519:28)
    at WebSocket.emitClose (/home/user/MARKETING/node_modules/ws/lib/websocket.js:246:10)
------CONNECTION----------------------------------
  at new Resolvable (/home/user/MARKETING/node_modules/commons/lib/Resolvable.ts:19:18)
    at createPromise (/home/user/MARKETING/node_modules/commons/lib/utils.ts:140:10)
    at PendingMessages.create (/home/user/MARKETING/node_modules/net/lib/PendingMessages.ts:47:44)
    at ConnectionToHeroCore.sendRequest (/home/user/MARKETING/node_modules/net/lib/ConnectionToCore.ts:158:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async CoreCommandQueue.sendRequest (/home/user/MARKETING/node_modules/client/lib/CoreCommandQueue.ts:317:12)
    at async Object.cb (/home/user/MARKETING/node_modules/client/lib/CoreCommandQueue.ts:231:16)
    at async Queue.next (/home/user/MARKETING/node_modules/commons/lib/Queue.ts:188:19)
------CORE COMMANDS-------------------------------
    at Queue.run (/home/user/MARKETING/node_modules/commons/lib/Queue.ts:63:19)
    at CoreCommandQueue.run (/home/user/MARKETING/node_modules/client/lib/CoreCommandQueue.ts:220:8)
    at CoreTab.goto (/home/user/MARKETING/node_modules/client/lib/CoreTab.ts:265:36)
    at Tab.goto (/home/user/MARKETING/node_modules/client/lib/Tab.ts:201:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SpawnProfile (/home/user/MARKETING/program/browse.js:716:9)

That's right after goTo action.

blakebyrnes commented 2 weeks ago

If you turn on DEBUG=ulx* on the command line, you should get more verbose logging (this is on core side). I don't see any clues in this snippet.

NN-Binary commented 2 weeks ago
2024-06-12T13:22:14.590Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Network.requestWillBeSent {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  requestId: '1274827.15',
  params: {
    requestId: '1274827.15',
    loaderId: '18AC9324CFD6D7B97DA577E0DA4F25A7',
    documentURL: 'chrome://extensions/',
    request: {
      url: 'chrome://resources/roboto/roboto-bold.woff2',
      method: 'GET',
      headers: {
        Referer: '',
        Origin: 'chrome://extensions',
        'Accept-Language': 'en-US,en;q=0.9',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36'
      },
      mixedContentType: 'none',
      initialPriority: 'VeryHigh',
      referrerPolicy: 'strict-origin-when-cross-origin',
      isSameSite: false
    },
    timestamp: 100495.60645,
    wallTime: 1718198534.584868,
    initiator: { type: 'parser', url: 'chrome://resources/css/roboto.css' },
    redirectHasExtraInfo: false,
    type: 'Font',
    frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
    hasUserGesture: false
  },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.591Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.bindingCalled {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  params: {
    name: 'onShadowDomPushedCallbackFn',
    payload: '[{"localName":"body","id":"","index":1,"hasShadowHost":false},{"localName":"extensions-manager","id":"","index":0,"hasShadowHost":false},{"localName":"div","id":"container","index":9,"hasShadowHost":true},{"localName":"cr-view-manager","id":"viewMana... [truncated 755 chars]',
    executionContextId: 1
  },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.591Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] send:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 93,
  params: {
    expression: 'window.checkForShadowRoot([{"localName":"body","id":"","index":1,"hasShadowHost":false},{"localName":"extensions-manager","id":"","index":0,"hasShadowHost":false},{"localName":"div","id":"container","index":9,"hasShadowHost":true},{"localName":"cr-vi... [truncated 782 chars]',
    contextId: 2,
    returnByValue: true,
    includeCommandLineAPI: false,
    awaitPromise: true
  },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.591Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Network.requestWillBeSent {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  requestId: '1274827.18',
  params: {
    requestId: '1274827.18',
    loaderId: '18AC9324CFD6D7B97DA577E0DA4F25A7',
    documentURL: 'chrome://extensions/',
    request: {
      url: 'chrome://theme/current-channel-logo@1x',
      method: 'GET',
      headers: {
        'Accept-Language': 'en-US,en;q=0.9',
        Referer: '',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36'
      },
      mixedContentType: 'none',
      initialPriority: 'Low',
      referrerPolicy: 'strict-origin-when-cross-origin',
      isSameSite: false
    },
    timestamp: 100495.612714,
    wallTime: 1718198534.591125,
    initiator: {
      type: 'parser',
      url: 'chrome://extensions/',
      lineNumber: 68,
      columnNumber: 1
    },
    redirectHasExtraInfo: false,
    type: 'Image',
    frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
    hasUserGesture: false
  },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.591Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.bindingCalled {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  params: {
    name: '__ulxPagePaintEventListenerCallback',
    payload: '{"timestamp":1718198534591,"event":"DomContentLoaded","url":"chrome://extensions/"}',
    executionContextId: 2
  },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.608Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.bindingCalled {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  params: {
    name: '__heroPageListenerCallback',
    payload: '[[[2,{"nodeType":10,"id":2,"textContent":"<!DOCTYPE html>","parentNodeId":1},1718198534591,3],[2,{"nodeType":1,"id":3,"tagName":"HTML","attributes":{"dir":"ltr","lang":"en","class":"focus-outline-visible"},"parentNodeId":1,"previousSiblingId":2},1718... [truncated 428986 chars]',
    executionContextId: 2
  },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.609Z STATS [hero-core/lib/FrameEnvironment] FrameEnvironment.onPageEvents {
  tabId: 1,
  frameId: 1,
  dom: 990,
  mouse: 0,
  focusEvents: 0,
  scrollEvents: 0,
  loadEvents: [],
  context: { tabId: 1, sessionId: 'zhrx7jKJh0g7eyy3bS0kd', frameId: 1 }
}
2024-06-12T13:22:14.611Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.bindingCalled {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  params: {
    name: '__heroPageListenerCallback',
    payload: '[[],[],[],[],[["DomContentLoaded","chrome://extensions/",1718198534591]]]',
    executionContextId: 2
  },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.611Z STATS [hero-core/lib/FrameEnvironment] FrameEnvironment.onPageEvents {
  tabId: 1,
  frameId: 1,
  dom: 0,
  mouse: 0,
  focusEvents: 0,
  scrollEvents: 0,
  loadEvents: [ [ 'DomContentLoaded', 'chrome://extensions/', 1718198534591 ] ],
  context: { tabId: 1, sessionId: 'zhrx7jKJh0g7eyy3bS0kd', frameId: 1 }
}
2024-06-12T13:22:14.611Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Page.domContentEventFired {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  params: { timestamp: 100495.628244 },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.611Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Page.lifecycleEvent {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  params: {
    frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
    loaderId: '18AC9324CFD6D7B97DA577E0DA4F25A7',
    name: 'DOMContentLoaded',
    timestamp: 100495.628244
  },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.612Z STATS [unblocked-agent/lib/FrameNavigations] emit:status-change {
  id: 1,
  url: 'chrome://extensions/',
  statusChanges: {
    HttpRequested: 1718198534453,
    HttpResponded: 1718198534453,
    DomContentLoaded: 1718198534606.6357
  },
  newStatus: 'DomContentLoaded',
  context: {
    sessionId: 'zhrx7jKJh0g7eyy3bS0kd',
    browserContextId: '91B21D6427315D75FC021BF0D8CF3A91',
    targetId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
    frameId: 1
  }
}
2024-06-12T13:22:14.612Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Network.requestWillBeSent {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  requestId: '1274827.14',
  params: {
    requestId: '1274827.14',
    loaderId: '18AC9324CFD6D7B97DA577E0DA4F25A7',
    documentURL: 'chrome://extensions/',
    request: {
      url: 'chrome://resources/roboto/roboto-medium.woff2',
      method: 'GET',
      headers: {
        Referer: '',
        Origin: 'chrome://extensions',
        'Accept-Language': 'en-US,en;q=0.9',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36'
      },
      mixedContentType: 'none',
      initialPriority: 'VeryHigh',
      referrerPolicy: 'strict-origin-when-cross-origin',
      isSameSite: false
    },
    timestamp: 100495.631225,
    wallTime: 1718198534.609641,
    initiator: { type: 'parser', url: 'chrome://resources/css/roboto.css' },
    redirectHasExtraInfo: false,
    type: 'Font',
    frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
    hasUserGesture: false
  },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.625Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Network.resourceChangedPriority {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  requestId: '1274827.18',
  params: {
    requestId: '1274827.18',
    newPriority: 'High',
    timestamp: 100495.642572
  },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.625Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 58,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.626Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 59,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.626Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 60,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.626Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 61,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.626Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 62,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.626Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 63,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 64,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 65,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 66,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 67,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 68,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 69,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 70,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 71,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 72,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 73,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 74,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.627Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 75,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.628Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 76,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.628Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 77,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.628Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 78,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.628Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 79,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.628Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 80,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.628Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 81,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.628Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 82,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.628Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 83,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.628Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 84,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.628Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 85,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.632Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 86,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.632Z STATS [unblocked-agent/lib/DevtoolsSessionLogger] receive:Runtime.evaluate {
  pageId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  frameId: 'EE0BFA582D29C3A7EC6FC22F2FC6F94D',
  messageId: 87,
  result: { result: { type: 'undefined' } },
  devtoolsSessionId: 'D3AFFFAB028BBDC1BAB5CC4B3B0E5637',
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.641Z WARN [unblocked-agent/lib/BrowserProcess] chrome.stderr {
  message: '[0612/212214.641317:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)',
  context: {},
  sessionId: null,
  sessionName: undefined
}
2024-06-12T13:22:14.641Z WARN [unblocked-agent/lib/BrowserProcess] chrome.stderr {
  message: '[0612/212214.641363:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)',
  context: {},
  sessionId: null,
  sessionName: undefined
}
2024-06-12T13:22:14.666Z INFO [unblocked-agent/lib/PipeTransport] PipeTransport.Closed { context: {} }
2024-06-12T13:22:14.667Z INFO [unblocked-agent/lib/BrowserProcess] chrome.ProcessExited { context: {} }
2024-06-12T13:22:14.668Z INFO [unblocked-agent/lib/Agent] Agent.Closing { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.669Z INFO [unblocked-agent/lib/BrowserContext] BrowserContext.Closing {
  context: {
    sessionId: 'zhrx7jKJh0g7eyy3bS0kd',
    browserContextId: '91B21D6427315D75FC021BF0D8CF3A91'
  }
}
2024-06-12T13:22:14.672Z STATS [hero-core/lib/Tab] Tab.Closing { context: { tabId: 1, sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.672Z STATS [unblocked-agent/lib/BrowserContext] BrowserContext.Closed 3ms {
  context: {
    sessionId: 'zhrx7jKJh0g7eyy3bS0kd',
    browserContextId: '91B21D6427315D75FC021BF0D8CF3A91'
  }
}
2024-06-12T13:22:14.681Z STATS [hero-core/lib/FrameEnvironment] FrameEnvironment.Closing {
  context: { tabId: 1, sessionId: 'zhrx7jKJh0g7eyy3bS0kd', frameId: 1 }
}
2024-06-12T13:22:14.681Z STATS [hero-core/lib/FrameEnvironment] FrameEnvironment.Closed {
  context: { tabId: 1, sessionId: 'zhrx7jKJh0g7eyy3bS0kd', frameId: 1 }
}
2024-06-12T13:22:14.682Z STATS [unblocked-agent-mitm/handlers/RequestSession] MitmRequestSession.Closing { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.682Z INFO [unblocked-agent-mitm-socket/lib/MitmSocketSession] ProxyIpcHandler.Closing { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.682Z INFO [unblocked-agent-mitm-socket/index] MitmSocket.Closing { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.682Z STATS [unblocked-agent-mitm/lib/SocketPool] Socket closed {
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd', origin: 'test.com:443' }
}
2024-06-12T13:22:14.682Z STATS [unblocked-agent-mitm-socket/index] MitmSocket.Closed { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.682Z INFO [unblocked-agent-mitm-socket/index] MitmSocket.Closing { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.682Z STATS [unblocked-agent-mitm/lib/SocketPool] Socket closed {
  context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd', origin: 'www.google.com:443' }
}
2024-06-12T13:22:14.683Z STATS [unblocked-agent-mitm-socket/index] MitmSocket.Closed 1ms { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.683Z INFO [unblocked-agent-mitm-socket/index] MitmSocket.Closing { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.683Z STATS [unblocked-agent-mitm/lib/SocketPool] Socket closed {
  context: {
    sessionId: 'zhrx7jKJh0g7eyy3bS0kd',
    origin: 'stackoverflow.com:443'
  }
}
2024-06-12T13:22:14.683Z STATS [unblocked-agent-mitm-socket/index] MitmSocket.Closed { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.683Z STATS [unblocked-agent-mitm-socket/lib/MitmSocketSession] ProxyIpcHandler.Closed 1ms { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.683Z STATS [unblocked-agent-mitm/handlers/RequestSession] MitmRequestSession.Closed 1ms { errors: [], context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.683Z INFO [unblocked-agent-mitm/lib/MitmProxy] MitmProxy.Closing { context: {} }
2024-06-12T13:22:14.684Z STATS [unblocked-agent-mitm/lib/MitmProxy] MitmProxy.Closed 1ms { closeErrors: [], context: {} }
2024-06-12T13:22:14.685Z INFO [unblocked-agent/lib/Pool] Pool.ReleasingAgent {
  maxConcurrentAgents: 10,
  activeAgentsCount: 0,
  waitingForAvailability: 0,
  context: {}
}
2024-06-12T13:22:14.685Z STATS [unblocked-agent/lib/Agent] Agent.Closed 17ms { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.685Z STATS [hero-core/lib/Tab] emit:close { context: { tabId: 1, sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.685Z STATS [hero-core/lib/Tab] Tab.Closed 13ms {
  errors: [
    "TypeError: Cannot read properties of null (reading 'finalFlush')"
  ],
  context: { tabId: 1, sessionId: 'zhrx7jKJh0g7eyy3bS0kd' }
}
2024-06-12T13:22:14.685Z STATS [hero-core/lib/CommandRecorder] Command.done 242ms {
  id: 1,
  context: { tabId: 1, sessionId: 'zhrx7jKJh0g7eyy3bS0kd', frameId: 1 }
} CanceledPromiseError: Cancel Pending Promise. Frame closed.
    at FrameNavigationsObserver.cancelWaiting (/home/user/test/Reborn/poc/MARKETING/agent/main/lib/FrameNavigationsObserver.ts:128:24)
    at Frame.close (/home/user/test/Reborn/poc/MARKETING/agent/main/lib/Frame.ts:204:30)
    at FramesManager.close (/home/user/test/Reborn/poc/MARKETING/agent/main/lib/FramesManager.ts:204:13)
    at Page.didClose (/home/user/test/Reborn/poc/MARKETING/agent/main/lib/Page.ts:559:26)
    at /home/user/test/Reborn/poc/MARKETING/agent/main/lib/BrowserContext.ts:349:47
    at Array.map (<anonymous>)
    at BrowserContext.close (/home/user/test/Reborn/poc/MARKETING/agent/main/lib/BrowserContext.ts:349:36)
    at Agent.close (/home/user/test/Reborn/poc/MARKETING/agent/main/lib/Agent.ts:174:34)
    at Pool.onBrowserClosed (/home/user/test/Reborn/poc/MARKETING/agent/main/lib/Pool.ts:295:70)
    at /home/user/test/Reborn/poc/MARKETING/agent/main/lib/Pool.ts:171:53
------LOCATION------------------------------------
  at new Resolvable (/home/user/test/Reborn/poc/MARKETING/node_modules/commons/lib/Resolvable.ts:19:18)
    at createPromise (/home/user/test/Reborn/poc/MARKETING/node_modules/commons/lib/utils.ts:140:10)
    at FrameNavigations.onNavigationRequested (/home/user/test/Reborn/poc/MARKETING/agent/main/lib/FrameNavigations.ts:148:44)
    at Page.goto (/home/user/test/Reborn/poc/MARKETING/agent/main/lib/Page.ts:309:51)
    at Tab.goto (/home/user/test/Reborn/poc/MARKETING/node_modules/core/lib/Tab.ts:519:28)
    at CommandRecorder.runCommandFn (/home/user/test/Reborn/poc/MARKETING/node_modules/core/lib/CommandRecorder.ts:90:32)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async CommandRunner.runFn (/home/user/test/Reborn/poc/MARKETING/node_modules/core/lib/CommandRunner.ts:36:14)
    at async ConnectionToHeroClient.executeCommand (/home/user/test/Reborn/poc/MARKETING/node_modules/core/connections/ConnectionToHeroClient.ts:258:12)
    at async ConnectionToHeroClient.handleRequest (/home/user/test/Reborn/poc/MARKETING/node_modules/core/connections/ConnectionToHeroClient.ts:66:14)
2024-06-12T13:22:14.685Z INFO [unblocked-agent/lib/Pool] Browser.closed {
  engine: {
    launchArguments: [
      '--proxy-bypass-list=<-loopback>',
      '--proxy-server=localhost:43223',
      '--remote-debugging-pipe',
      '--ignore-certificate-errors',
      '--disable-background-networking',
      '--enable-features=NetworkService,NetworkServiceInProcess',
      '--disable-background-timer-throttling',
      '--disable-backgrounding-occluded-windows',
      '--disable-breakpad',
      '--disable-client-side-phishing-detection',
      '--disable-domain-reliability',
      '--disable-default-apps',
      '--disable-dev-shm-usage',
      '--load-extension=/home/user/test/Reborn/poc/MARKETING/program/extensions/consentomatic/',
      '--disable-features=PaintHolding,LazyFrameLoading,DestroyProfileOnBrowserClose,AvoidUnnecessaryBeforeUnloadCheckSync,OutOfBlinkCors,GlobalMediaControls,MediaRouter,DialMediaRouteProvider,OptimizationHints',
      '--disable-blink-features=AutomationControlled',
      '--disable-hang-monitor',
      '--disable-ipc-flooding-protection',
      '--disable-prompt-on-repost',
      '--disable-renderer-backgrounding',
      '--disable-sync',
      '--force-color-profile=srgb',
      '--disable-skia-runtime-opts',
      '--use-fake-device-for-media-stream',
      '--no-default-browser-check',
      '--metrics-recording-only',
      '--no-first-run',
      '--enable-auto-reload',
      '--password-store=basic',
      '--use-mock-keychain',
      '--allow-running-insecure-content',
      '--window-size=1440,900',
      '--force-webrtc-ip-handling-policy=default_public_interface_only',
      '--no-startup-window',
      '--user-data-dir=/tmp/7pVIy-1-121-0-6167-184'
    ],
    doesBrowserAnimateScrolling: true,
    engineFetcher: {
      fullVersion: '121.0.6167.184',
      osPlatformName: 'linux',
      executablePathEnvVar: 'CHROME_121_BIN',
      executablePath: '/home/user/.cache/ulixee/chrome/121.0.6167.184/chrome',
      symlinkVersionDir: '/home/user/.cache/ulixee/chrome/121.0.6167.185'
    },
    engineOption: {
      id: 'chrome-121-0',
      name: 'chrome',
      majorVersion: 121,
      buildVersion: 6167,
      stablePatchesByOs: {
        mac: [ 184, 160, 139, 85 ],
        win: [ 185, 161, 140, 86 ],
        linux: [ 184, 160, 139, 85 ]
      }
    },
    name: 'chrome',
    fullVersion: '121.0.6167.184',
    executablePath: '/home/user/.cache/ulixee/chrome/121.0.6167.184/chrome',
    executablePathEnvVar: 'CHROME_121_BIN',
    isInstalled: true,
    isHeaded: true,
    userDataDir: '/tmp/7pVIy-1-121-0-6167-184'
  },
  browserId: '1',
  context: {}
}
Automatically shutting down Hero Core (Browser Closed)
2024-06-12T13:22:14.686Z INFO [hero-core/index] Core.shutdown { context: {} }
2024-06-12T13:22:14.686Z STATS [hero-core/connections/ConnectionToHeroClient] ConnectionToClient.Disconnecting { context: {} }
2024-06-12T13:22:14.686Z STATS [hero-core/connections/ConnectionToHeroClient] ConnectionToClient.Disconnecting { context: {} }
2024-06-12T13:22:14.687Z STATS [unblocked-agent/lib/Pool] Pool.Closing { browsers: 0, context: {} }
2024-06-12T13:22:14.687Z INFO [unblocked-agent-mitm/lib/MitmProxy] MitmProxy.Closing { context: {} }
2024-06-12T13:22:14.687Z STATS [unblocked-agent-mitm/lib/MitmProxy] MitmProxy.Closed { closeErrors: [], context: {} }
2024-06-12T13:22:14.687Z INFO [unblocked-agent-mitm-socket/lib/CertificateGenerator] CertsIpcHandler.Closing { context: {} }
2024-06-12T13:22:14.687Z STATS [unblocked-agent-mitm-socket/lib/CertificateGenerator] CertsIpcHandler.Closed { context: {} }
2024-06-12T13:22:14.687Z INFO [hero-core/lib/CommandRecorder] Command.run {
  id: 2,
  name: 'close',
  retryNumber: 0,
  args: [ true ],
  context: {
    tabId: undefined,
    sessionId: 'zhrx7jKJh0g7eyy3bS0kd',
    frameId: undefined
  }
}
2024-06-12T13:22:14.688Z STATS [unblocked-agent/lib/Pool] Pool.Closed 1ms { errors: [], context: {} }
2024-06-12T13:22:14.688Z STATS [hero-core/connections/ConnectionToHeroClient] ConnectionToClient.Disconnected 2ms { context: {} }
2024-06-12T13:22:14.688Z INFO [hero-core/lib/Session] Session.Closing { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.688Z STATS [hero-core/lib/Session] Session.Closed { context: { sessionId: 'zhrx7jKJh0g7eyy3bS0kd' } }
2024-06-12T13:22:14.815Z STATS [hero-core/lib/CommandRecorder] Command.done 128ms {
  id: 2,
  context: {
    tabId: undefined,
    sessionId: 'zhrx7jKJh0g7eyy3bS0kd',
    frameId: undefined
  }
}
2024-06-12T13:22:14.815Z STATS [hero-core/connections/ConnectionToHeroClient] ConnectionToClient.Disconnected 129ms { context: {} }
2024-06-12T13:22:14.816Z STATS [cloud/lib/CloudNode] CloudNode.Closing { context: {} }
2024-06-12T13:22:14.816Z INFO [hero-core/index] Core.shutdownComplete 130ms { context: {} }
2024-06-12T13:22:14.816Z STATS [datastore-core/index] DatastoreCore.Closing { context: {} }
2024-06-12T13:22:14.816Z INFO [datastore-core/lib/WorkTracker] Waiting for completing of remaining Datastore.query calls { count: 0, context: {} }
2024-06-12T13:22:14.816Z STATS [net/lib/ConnectionToCore] ConnectionToCore.Disconnecting { host: 'direct', context: {} }
2024-06-12T13:22:14.817Z STATS [net/lib/ConnectionToCore] ConnectionToCore.Disconnected 1ms { host: 'direct', context: {} }
2024-06-12T13:22:14.817Z STATS [datastore-core/index] DatastoreCore.Closed 1ms { context: {} }
2024-06-12T13:22:14.817Z STATS [cloud/lib/RoutableServer] RoutingServer.Closing { context: {} }
2024-06-12T13:22:14.818Z STATS [cloud/lib/RoutableServer] RoutingServer.Closed 1ms { context: {} }
2024-06-12T13:22:14.818Z STATS [cloud/lib/CloudNode] CloudNode.Closed 2ms { context: {} }
2024-06-12T13:22:14.821Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } DisconnectedError: This transport has been disconnected (host: ws://localhost:36257/hero)
    at ConnectionToHeroCore.onConnectionTerminated (/home/user/test/Reborn/poc/MARKETING/node_modules/net/lib/ConnectionToCore.ts:241:33)
    at WsTransportToCore.finalHandler (/home/user/test/Reborn/poc/MARKETING/node_modules/commons/lib/EventSubscriber.ts:46:14)
    at Object.onceWrapper (node:events:634:26)
    at WsTransportToCore.emit (node:events:519:28)
    at WsTransportToCore.emit (/home/user/test/Reborn/poc/MARKETING/node_modules/commons/lib/TypedEventEmitter.ts:158:18)
    at WsTransportToCore.disconnect (/home/user/test/Reborn/poc/MARKETING/node_modules/net/lib/WsTransportToCore.ts:60:10)
    at WebSocket.finalHandler (/home/user/test/Reborn/poc/MARKETING/node_modules/commons/lib/EventSubscriber.ts:46:14)
    at Object.onceWrapper (node:events:634:26)
    at WebSocket.emit (node:events:519:28)
    at WebSocket.emitClose (/home/user/test/Reborn/poc/MARKETING/node_modules/ws/lib/websocket.js:246:10)
------CONNECTION----------------------------------
  at new Resolvable (/home/user/test/Reborn/poc/MARKETING/node_modules/commons/lib/Resolvable.ts:19:18)
    at createPromise (/home/user/test/Reborn/poc/MARKETING/node_modules/commons/lib/utils.ts:140:10)
    at PendingMessages.create (/home/user/test/Reborn/poc/MARKETING/node_modules/net/lib/PendingMessages.ts:47:44)
    at ConnectionToHeroCore.sendRequest (/home/user/test/Reborn/poc/MARKETING/node_modules/net/lib/ConnectionToCore.ts:158:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async CoreCommandQueue.sendRequest (/home/user/test/Reborn/poc/MARKETING/node_modules/client/lib/CoreCommandQueue.ts:317:12)
    at async Object.cb (/home/user/test/Reborn/poc/MARKETING/node_modules/client/lib/CoreCommandQueue.ts:231:16)
    at async Queue.next (/home/user/test/Reborn/poc/MARKETING/node_modules/commons/lib/Queue.ts:188:19)
------CORE COMMANDS-------------------------------
    at Queue.run (/home/user/test/Reborn/poc/MARKETING/node_modules/commons/lib/Queue.ts:63:19)
    at CoreCommandQueue.run (/home/user/test/Reborn/poc/MARKETING/node_modules/client/lib/CoreCommandQueue.ts:220:8)
    at CoreTab.goto (/home/user/test/Reborn/poc/MARKETING/node_modules/client/lib/CoreTab.ts:265:36)
    at Tab.goto (/home/user/test/Reborn/poc/MARKETING/node_modules/client/lib/Tab.ts:201:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SpawnProfile (/home/user/test/Reborn/poc/MARKETING/program/browse.js:716:9)

--------------------------------------------------
------test----------------------------------------
------zhrx7jKJh0g7eyy3bS0kd-----------------------
-------------------------------------------------- {
  host: 'ws://localhost:36257/hero',
  code: 'DisconnectedError'
}
NN-Binary commented 2 weeks ago

I've also tried to create another tab first then browse with that tab, automated fake click too... all of them crash the instance right away, except when it's done manually, then it works.