@prtercio wrote:
Hi guys,
My code:
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?
Posts: 1
Participants: 1