ulixee / hero

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

ShadowDOM: Cannot read properties of null (reading 'children') #201

Open ja3abuser opened 1 year ago

ja3abuser commented 1 year ago

How to reproduce? await hero.goto("chrome://extensions/")

Stacktrace

2022-12-08T13:17:49.780Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.782Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.782Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.782Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.782Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.782Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.783Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.783Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.783Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.783Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.783Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.783Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.783Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.784Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.784Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.784Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.784Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.784Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.784Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.784Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.784Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.784Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.784Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.784Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.785Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.785Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8
2022-12-08T13:17:49.785Z ERROR [hero-core/index] UnhandledRejection { context: {}, sessionId: null, sessionName: undefined } TypeError: Cannot read properties of null (reading 'children')
    at PageEventsRecorder.checkForShadowRoot (<anonymous>:322:51)
    at window.checkForShadowRoot (<anonymous>:724:46)
    at <anonymous>:1:8