-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
This error occur when read okhttp3.response.body() more then one time, because it is stream, after first read it is closing.
.....
onResponse: (call, response) => {
let body;
try {
body = JSON.parse(response.body().string()); //error with parse JSON
} catch (e) {
body = response.body().string(); //reading body second time, crash
}
.....
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed