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.

How to know if Network.responseReceived have a relationship to Network.dataReceived

See original GitHub issue

Is there any way to map back a size of the network request to what you’d get back from Network.dataReceived to Network.responseReceived?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
pavelfeldmancommented, Jul 5, 2017

Network.responseReceived is triggered when the header of the response becomes available. The body has not yet started downloading. At that point in time, we only know Content-Length via parsing the response header.

Then we get a series of Network.dataReceived events that carry information about actual network chunks. They all share requestId that is first mentioned in the Network.requestWillBeSent. It all ends up with the Network.loadingFinished when resource has been loaded (or Network.loadingFailed if it failed).

0reactions
evenstensbergcommented, Jul 6, 2017

My fault, closing this. Thanks for helping out 🥇

Read more comments on GitHub >

github_iconTop Results From Across the Web

Network domain - Chrome DevTools Protocol - GitHub Pages
Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, ......
Read more >
Understanding performance timings, loadingFinished vs ...
I'm trying to understand the network events of ChromeDev tools for performance ... responseReceived (fired when HTTP response is available) ...
Read more >
Network.dataReceived - Vanilla Protocol Viewer
Network.RequestIdIf the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId ...
Read more >
sunny sachdeva: There are two possible ways to capture all ...
Network.dataReceived; Network.loadingFinished. Once you will run my code, you will see all these events along with the request and response data ...
Read more >
Devtools protocol: Network.responseReceived, encoded data ...
... the devtools gives me and I'm surprised to see that inside the Network.responseReceived object, the encoded data length is bigger then the...
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