In my angular 4 application I have a problem with a standard http get, and in Chrome if I see the header of this call I see: Provisional headers are shown
afer that call chrome remains stucked, I need to kill it to make it works again.
If I try to debug I see that the map operator in my service is not executed, and also the subscribe in the component is not executed. This Get make the call with the correct link, and it is not a backend problem,
so why my application/chrome result stucked and I can't see any errors?
Component
ngOnInit() {
this.loadNotes(10);
}
loadNotes(items: number) {
this.noteService.getNotes2(this.link, items, this.currentPage)
.subscribe(response => {
console.log('subscribe');
this.ticketBundleNoteList = response._embedded.notes as Note[];
},
error => {console.log('error')})
}
noteService
getNotes2(url: string, items, page) {
let params = new HttpParams().set('size', items);
params = params.set('page', page);
console.log('SERVICE NOTE')
return this.http.get('http://....../api/v1/depositReceipts/search/getNotes?id=1')
.map((response) => <any>response)
}