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

Uncaught error opening DevTools in the WebDriver BiDi controlled browser #1975

Open
OrKoN opened this issue Mar 7, 2024 · 2 comments
Open
Assignees

Comments

@OrKoN
Copy link
Collaborator

OrKoN commented Mar 7, 2024

/Users/alexrudenko/src/pptr-test/node_modules/chromium-bidi/lib/cjs/utils/assert.js:22
        throw new Error(message ?? 'Internal assertion failed.');
              ^

Error: RequestWillBeSentEvent is not set
    at assert (/Users/alexrudenko/src/pptr-test/node_modules/chromium-bidi/lib/cjs/utils/assert.js:22:15)
    at #getResponseStartedEvent (/Users/alexrudenko/src/pptr-test/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js:401:32)
    at #emitEvent (/Users/alexrudenko/src/pptr-test/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js:306:21)
    at #emitEventsIfReady (/Users/alexrudenko/src/pptr-test/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js:142:28)
    at NetworkRequest.onResponseReceivedEvent (/Users/alexrudenko/src/pptr-test/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js:167:32)
    at /Users/alexrudenko/src/pptr-test/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.js:73:82
    at /Users/alexrudenko/src/pptr-test/node_modules/mitt/dist/mitt.js:1:255
    at Array.map (<anonymous>)
    at Object.emit (/Users/alexrudenko/src/pptr-test/node_modules/mitt/dist/mitt.js:1:239)
    at CDPClientAdapter.emit (/Users/alexrudenko/src/pptr-test/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js:55:23)

@Lightning00Blade let me know if you need a repro

@OrKoN
Copy link
Collaborator Author

OrKoN commented Mar 7, 2024

This is with Puppeteer 22.4.0

@Lightning00Blade
Copy link
Collaborator

I have fixed the issue, but still need to create a Unit test for it before closing this one.

Lightning00Blade added a commit that referenced this issue Mar 13, 2024
Should mitigate #1975. Will need to investigate a repo and add unit
testing before closing.
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