marklogic/java-client-api

Transfer Encoding has non-emtpy body when no result in returned through okhttp

llinggit opened this issue · 3 comments

While transfer encoding(chunking) is enabled, I found that when no result is returned, okhttp returns non-empty body. This doesn't happen when transfer encoding is disabled. This causes some trouble and we have an hack to solve this.
Need to investigate this further.

So we can address your issue, please include the following:

Version of MarkLogic Java Client API

See Readme.txt

Version of MarkLogic Server

See admin gui on port 8001 or run xdmp:version() in Query Console - port 8000)

Java version

Run java -version

OS and version

For MAC, run sw_vers.
For Windows, run systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
For Linux, run cat /etc/os-release and uname -r

Input: Some code to illustrate the problem, preferably in a state that can be independently reproduced on our end

Actual output: What did you observe? What errors did you see? Can you attach the logs? (Java logs, MarkLogic logs)

Expected output: What specifically did you expect to happen?

Alternatives: What else have you tried, actual/expected?

Line 4509 in OkHttpServices.java

Transferring to JIRA to determine what the actual issue is and if we need to take action.