-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Payload size isn't correct for some transactions #209
Comments
After some basic investigation found out that Chucker solely relies on So Chucker needs to implement the same mechanism. |
This could be fixed after merging #267. We would have to keep counting the bytes in |
I was thinking about this feature lately and see couple of things that could be done.
|
Moving further, so we could release @MiSikora as to your ideas - agree on first 3 points, but the last one with progressive update of the request size is an overengineering, which won't bring much value to our users. |
Yes, I think so as well. Just wanted to propose it in case you find it valuable. |
Agree on the first 3 points as well. On a side note I was also wondering if we should show the I actually think it might be valuable for the user to see |
We could show |
++ |
Hi @aldoKelvianto However, it is strange that Chuck shows the size while Chucker not. |
Thanks for reporting @aldoKelvianto
Can you please share the |
You're welcome! Sure, however, I don't think you'll find it interesting. private fun createOkHttpClient(): OkHttpClient =
OkHttpClient.Builder().apply {
cache(createOkHttpCache())
addInterceptor(ChuckerInterceptor(context))
connectTimeout(CONNECT_TIMEOUT, TimeUnit.SECONDS)
readTimeout(READ_TIMEOUT, TimeUnit.SECONDS)
}.build() I don't use other interceptors. I replace |
Great. As discussed above we're probably going to decouple the |
📢 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
The text was updated successfully, but these errors were encountered: