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.

Payload size isn't correct for some transactions

See original GitHub issue

📢 Describe the bug

Some transactions show payload size as -1. It is totally fine, since OkHttp returns this value in case the size is unknown. However, when I wanted to handle this value in Chucker UI I decided to check what other network interceptors show and found out that Stetho show sizes for transactions, which show -1 in Chucker.

🔧 Expected behavior

Transactions show actual size instead of -1.

📷 Screenshots

Screen Shot 2020-01-26 at 10 51 39

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cortinicocommented, Apr 8, 2020

You guess it correctly. There’s no Content-Length header in the API response.

Great. As discussed above we’re probably going to decouple the Content-Length to the actual payload size in two different fields.

1reaction
MiSikoracommented, Mar 26, 2020

I was thinking about this feature lately and see couple of things that could be done.

  • If Content-Length is available Chucker could just use this value to determine the size of the response.
  • If Content-Length is not available Chucker could wait for the response to be read in a TeeSource and be informed about bytes read once upstream is depleted. The problem occurs if the consumer does not read bytes fully like reported in #287. In this case there is no way of knowing what would be the size of the response.
  • Chucker could display amount of data that was downloaded by the user and the size of the response if it is available (either form Content-Length or from TeeSource if exhausted). It would require some UI changes on most of the screens.
  • Chucker could show gradual changes of downloaded data. So while bytes are being read from an upstream it would display progressively 8 kB, 16 kB, 24 kB and so on. Not really sure if there is a need for this. It would also require some UI changes.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Deep Dive: Lambda's Response Payload Size Limit (1/2)
Everything you should know about Lambda's response payload size limit, ResponseSizeTooLarge errors, and how API Gateway fits in.
Read more >
Max number of assets and max size of payload in single ...
I have millions of assets, ingesting into Fabric network. Maximum assets(Key-Value) can be added into the single transaction are 1000(Correct if ...
Read more >
Tracking Very Large Transactions With Google Analytics and ...
We do this by breaking the transaction into chunks, then changing the data very slightly between hits. Unfortunately, this approach has some ...
Read more >
Missing Google Analytics Transactions? Here are the solutions
Learn how to identify and fix missing Google Analytics transactions. Some tips involve Google Tag Manager, others -- developers.
Read more >
Dual-write limits for live synchronization - Finance & Operations
A payload size limit on Dataverse limits the number of records that can be transferred. The limit is 116.85 megabytes (MB) per transaction....
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