question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firefox: page.setRequestInterception throws protocol error.

See original GitHub issue

Steps to reproduce

Using

await page.setRequestInterception(true)

throws the following error

Protocol error (Fetch.enable): Fetch.enable RemoteAgentError@chrome://remote/content/Error.jsm:25:5
    UnknownMethodError@chrome://remote/content/Error.jsm:108:7
    execute@chrome://remote/content/domains/DomainCache.jsm:96:13

Use Case

Right now, cookies don’t work correctly in puppeteer due to missing headers https://github.com/puppeteer/puppeteer/issues/4918, so it’s impossible to test an application that uses authentication. In order to make it work, I tried using this hack https://github.com/puppeteer/puppeteer/issues/4918#issuecomment-663478790 and it worked in Chrome but doesn’t work in firefox.

Tell us about your environment:

  • Puppeteer version: 5.2.1
  • Platform / OS version: Linux
  • URLs (if applicable):
  • Node.js version: 12.16.2

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Rangunacommented, Jun 23, 2022

@stale please leave it as confirmed. It’s being tracked here: https://bugzilla.mozilla.org/show_bug.cgi?id=1587857

EDIT: should I make a bot that adds a comment here every 29 days ?

0reactions
shubRajcommented, Nov 11, 2022

Same Issue ProtocolError: Protocol error (Fetch.enable): Fetch.enable RemoteAgentError@chrome://remote/content/cdp/Error.sys.mjs:20:5

Read more comments on GitHub >

github_iconTop Results From Across the Web

setRequestInterception support for Firefox in Puppeteer
This is how I launch the browser (I can see Firefox window, and all other tests pass): browser = await puppeteer.launch({ product: "firefox", ......
Read more >
mozilla-central: changeset 534188 ...
detachFrame(page, 'frame1'); - let error = null; -``` - -[Puppeteer ... "Firefox Browser Page ElementHandle.click should throw for detached ...
Read more >
1552326 - Implement Network.setRequestInterception
The core implementation for CDP support. Please file domain specific issues and requests under the appropriate CDP-prefixed Remote Protocol component. See Open ...
Read more >
mozilla-central: changeset 583207 ...
setRequestInterception should throw if interception is not enabled (requestinterception.spec.ts)": [ "PASS" ], "request interception Page.
Read more >
try - Mercurial - Mozilla
Events.error should throw when page crashes (page.spec.ts)": [ "TIMEOUT" ], "Page Page ... of relying on the non-standard DevTools Protocol used by Chrome)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found