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.

[umbrella] Fix Request Interception

See original GitHub issue

Umbrella bug for all request interception issues in Puppeteer. This mostly depends on upstream Chromium bug: https://crbug.com/899386

Description

DevTools Protocol emits two events for every intercepted request:

Puppeteer extracts different pieces of information from these events. However, since interceptionId and requestId aren’t matching, Puppeteer uses heuristics to match these events together. This is necessary to provide a consistent API to our clients.

Unfortunately, these heuristics aren’t reliable and break under different corner cases: #1664, #2848, #3030, #3369 and so on.

Mitigation

We weren’t able to fix this upstream up until today due to the network stack refactoring in Chromium. Now, with Network Service getting gradually adopted, we can fix this upstream.

The plan is:

  1. Enable Network Service by default to Puppeteer users
  2. Fix network instrumentation in DevTools protocol for the Network Service and migrate onto it. (see https://crbug.com/899386).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:36
  • Comments:53 (13 by maintainers)

github_iconTop GitHub Comments

16reactions
aslushnikovcommented, Apr 8, 2019

The fix has landed and will be available in the next release (will be published in the end of April / beginning of may 2019). 🎉

For now, please give it a try with 👉 npm i puppeteer@next

5reactions
aslushnikovcommented, Jan 22, 2019

@sradu we’re working on it. Still no ETA.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Request Interception - Puppeteer
Request Interception. Once request interception is enabled, every request will stall unless it's continued, responded or aborted. An example of a naïve request...
Read more >
Utimaco L I M S ~ ~ Techpaper Lawful Interception with ...
Utimaco has addressed these needs and challenges by developing an umbrella management system that is capable of interconnecting various LI management systems.
Read more >
Web on Servlet Stack - Spring
The spring-web module provides FormContentFilter to intercept HTTP PUT, PATCH, and DELETE requests with a content type of application/x-www-form-urlencoded ...
Read more >
Unified Lawful Interception Suite | Thales Group
ULIS (Unified Lawful Interception Suite) is a comprehensive system for transparently intercepting real-time information from voice, data and multimedia ...
Read more >
Best practices to avoid security vulnerabilities in your iOS App
Fix. Avoid declaring the variables by keeping such ... Example 1: The following code makes an HTTP request using the GET HTTP method...
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