This is the client setup ```private val client = H...
# kotlin-native
k
This is the client setup
Copy code
private val client = HttpClient {
        install(JsonFeature) {
            serializer = KotlinxSerializer()
        }
        install(Logging) {
            logger = Logger.DEFAULT
            level = LogLevel.ALL
        }
    }
k
have you tried it w/o logging? just curious
k
Yes. Logging added to figure out what was happening
Same error “*GET method must not have a body”*
k
gotcha
if you are on a platform that supports a different serializer, maybe try that just to isolate where the issue is coming from
i suspect it's the kotlinx serializer
a
Your log says "BODY Content-Type: application/json". So it makes sense, that there has to be a JSON body which is {}, if nothing else is specified. You only want the accept type as JSON, not the body content type.
k
Disregard. iOS side was setting ‘application/json’ additionally. Removed.