Comments (13)
Thank you, really love your library :)
from chucker.
Is the server returning the 'Content-Type' as 'application/json' (or any string that contains 'json')?
from chucker.
So Chucker won't pretty print your JSON body unless the Content-Type
header contains json
.
If your backend is not setting the Content-Type
properly, the body won't be parsed and will just be returned as it is.
On the other hand, I'm updating the font of the body to use a monospace
as it will make everything more readable (see #118)
from chucker.
Hi @cortinico, my backend already setting Content-Type: application/json
. but Chucker still not pretty print. What can i do to fix this?
from chucker.
Is this happening with every request @zihadrizkyef ? Have you tried the Chucker sample app? Is that happing also over there?
from chucker.
Is this happening with every request @zihadrizkyef?
I was using chuck v2.0.4 and it was pretty printed. But after i update the version to v3.0.1, the request is no longer pretty printed.
It happen in all request.
Have you tried the Chucker sample app? Is that happing also over there?
No, i dont use the sample
from chucker.
com.chuckerteam.chucker.api.internal.data.entity.HttpTransaction.kt:205
fun getFormattedResponseBody(): String {
return responseBody?.let { formatBody(it, requestContentType) } ?: ""
}
should be responseContentType
from chucker.
@shaubert You're correct. That has already been fixed in #103 and will be shipped in the upcoming release 3.1.0
(that will ideally also fix the pretty printing issue)
from chucker.
@zihadrizkyef In the meanwhile, you can try the latest develop
snapshots that should contain the fix:
https://github.com/ChuckerTeam/chucker#snapshots-
from chucker.
Hi there. Just wanted to follow up on the release plan for this. Is there an eta for 3.1.0 ?
from chucker.
Hi there. Just wanted to follow up on the release plan for this. Is there an eta for 3.1.0 ?
Ideally should be out in a couple of weeks. If you need the latest develop
branch, you can still use the snapshots
from chucker.
Hi! Any new info about the time when the 3.1.0 is supposed to come out?
from chucker.
Hi! Any new info about the time when the 3.1.0 is supposed to come out?
More info on this in #194 👍
from chucker.
Related Issues (20)
- 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
- Method skipPaths on builder does not work as expected HOT 1
- Global Interceptor adding HOT 1
- Support for `ktor` networking library using in `android` and `kmp` projects. HOT 1
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.