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.

[Feature Request] [Pull Request?] Declare Request._requestId or Request._interceptionId in the API

See original GitHub issue

When you intercept or inspect a request via the DevTools protocol, you use a special InterceptionId or RequestId. Can you expose these properties via the Request object? I can already see that they are kept tracked of in the _interceptionId and _requestId fields, respectively, but they are undocumented and meant to be private.

Since this is a standard feature of the DevTools protocol, it seems to make sense to expose them. If it’s okay by you, I will submit a pull request that does this myself.

Use cases:

  1. Allows using puppeteer and a lower-level DevTools client together for things puppeteer does not support.
  2. The properties are useful in and of themselves. For example, from my research, _interceptionId can be used to keep track of a series of redirects.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
GregRoscommented, Jan 17, 2018

@aslushnikov That’s great! I’m looking forward to contributing something myself.

1reaction
aslushnikovcommented, Jan 17, 2018

@GregRos thank you for taking time and explaining me your usecase.

If your API can work even on the Request object passed in the handler, and the parent requests always maintain reference identity with the objects that were sent to the handler last time, that’s great!

@GregRos this would be the case. Closing this in favor of #1816.

Read more comments on GitHub >

github_iconTop Results From Across the Web

New Feature Request Process - Angular Blog
When we receive a ticket, an Angular team member will review it manually and categorize it as a feature request or an issue....
Read more >
Intercepting request with Chrome Devtools Protocol
The topic covers how to use Chrome Devtools Protocol (CDP) in Katalon Studio to intercept HTTP requests. Please note that this sample ...
Read more >
Checking if pull request have had changes ... - Stack Overflow
I'm trying to make a script to analyse the efficiency of our code review staff. github · github-api · Share.
Read more >
try - Mercurial - Mozilla
setRequestInterception should not throw \"Invalid Interception Id\" if the request was cancelled (requestinterception-experimental.spec.ts)": [ + "FAIL" + ] ...
Read more >
Diff - 7114a66134..b6ba996636 - chromium/src - Git at Google
-15,6 +15,7 @@ import("//device/vr/features/features.gni") ... This means that + * the server was unable to read any requests sent, so they may be...
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