In my Angular2 App i call API EndPoint with a service
this.jsonp.request(middlewareUrl, { method: 'Get' })
.subscribe(
(data) => {
console.log(data);
},
(error) => {
console.log(error);
});
console.log("post data");
}
and recive this response :
Response_body: "JSONP injected script did not invoke callback."headers: Headersok: truestatus: 200statusText: "Ok"type: 3url: "http://localhost:4000/matches?callback=__ng_jsonp__.__req0.finished"__proto__: Bodyconstructor: Response(responseOptions)toString: ()__proto__: Object
the endPoint return this:
_todayMatchesCallback({"matchlist":["match1","match2",ecc]}).
can we have any idea or solution for this error?