[Ionic 4] Error http: okhttp3.internal.http2.StreamResetException

#1

Hi guys,

My code(test android.debug.apk):

let nativeCall = this.nativeHttp.get(“https://api.cartolafc.globo.com/times?q=”+value, {},
{‘Content-Type’:‘application/json;charset=UTF-8’}
);
from(nativeCall).pipe().subscribe(data=>{
console.log(data.status);
console.log(data.data); // data received by server
console.log(data.headers);
}, error =>{
console.log(error.status);
console.log(error.data); // data received by server
console.log(error.headers);
console.log(error);
});
}

Error:
status: -1
error: “There was an error with the request: okhttp3.internal.http2.StreamResetException: stream was reset: INTERNAL_ERROR”

Any suggestion?