Comments (9)
Just tried out this library and it looks great, but the one thing keeping me from migrating over from Chuck is this issue where large json responses cause Chucker to hang and then eventually crash after you try and swipe from the Overview tab to either the Request or Response tab (probably when the data starts to get loaded into the Response tab).
Chuck is able to show these responses (even if there is no ability to search) so for now, I'll have to stay with Chuck.
Looking forward to trying this library again in the future, it looks great!
from chucker.
Actually, being able to open any response as a file with another viewer sounds like a great idea!
from chucker.
@cortinico yes this is still happening. I am using 3.0.1
from chucker.
Part of this issue was addressed by @redwarp in #72
Edit 2: Maybe just show the first x amount of lines, but still provide a way to export or view the json as a file?
You can set the maxContentLength
on the ChuckerInterceptor
to truncate the body if needed (but still you won't be able to export or share the full body afterwards).
Curious to hear what others think about this
from chucker.
Gotcha. I think after a certain size maybe 500k or something the text just gets treated as a file. Then in the response tab it can say "Response exceed x" with a button that opens the file in another file viewer. Also, the share as text would turn into a "Share as file" button?
from chucker.
Sounds more like as a feature-request.
Definitely valuable to implement :)
from chucker.
Just bumping this. Tried using Chucker on a new project and it's completely useless because of large json. It just ANRs. 😭
from chucker.
Just bumping this. Tried using Chucker on a new project and it's completely useless because of large json. It just ANRs.
Thanks for bumping. Is this still happening? If yes, which version are you using? 3.0.1
?
from chucker.
Ok so after some investigation, turns out the issue is on the TransactionPayloadFragment
. When dealing with big payloads, we hang the UI thread by setting the text
of a TextView
with a huge String
:
I do have a proposed fix for this, that unfortunately has a couple of drawbacks.
Chuck is able to show these responses (even if there is no ability to search)
so for now, I'll have to stay with Chuck.
@kmayoral I've tried Chuck with the HTTP request that was suggested on top of this thread (https://data.cityofnewyork.us/api/views/kku6-nxdu/rows.json) and the behavior is exactly the same. Are you sure of this?
from chucker.
Related Issues (20)
- React native app crashing issue
- add support for android 14 HOT 1
- Share Crash TransactionTooLargeException HOT 2
- Chucker working fine in react native debug build. how to enable in release build? HOT 3
- With notifications disabled, Chucker will still ask for notification permission when launching the activity HOT 5
- body is empty in the Request Body even though the log shows the actual request body (see screenshot) HOT 3
- Chucker not working in React native latest version
- Control what to show/ hide in request/ response bodies HOT 3
- Allow tracking of all network calls HOT 3
- IllegalStateException when open single API request information on release build. HOT 6
- The large JSON data is corrupted. I cannot see or export large JSON file (3.2mb)
- Aaa
- chucker/4.0.0 build faild on jitpack HOT 2
- Can not force ltr in RTL languages HOT 1
- Chucker not working on some devices but is working on others
- Localization HOT 1
- Toolbar subtitle (app name) gets truncated on device OnePlus7 Pro (OS 12)
- Duplicate class com.chuckerteam.chucker.api.Chucker found in modules jetified-library-4.0.0-runtime HOT 5
- 7016
- Ignore domains and paths from interceptor HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chucker.