אנימשתמשבצדשרתמסוג .NET12ובצדלקוחמסוגאנגולרGET שמקבלתערךבוליאניומחזירהמערךשלטיפוסיםהעוניםעלהתנאי - מפעילהפונקציותואכןמחזירסטטוס 200 מצדהשרת:אבלבאנגולרזהנופלוכותבאתהשגיאההזו
HttpErrorResponse {headers: _HttpHeaders, status: 200, statusText: 'OK', url: 'http://localhost:4200/api/Students/true', ok: false, …}error:{error: SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON at JSON.parse (…, text: '<!doctype html>\r\n\r\n\n <scrip…ain.js" type="module">\x3C/script>\r\n\r\n'}headers:_HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, lazyInit: ƒ}message:"Http failure during parsing for http://localhost:4200/api/Students/true"name:"HttpErrorResponse"ok:falsestatus:200statusText:"OK"url:"http://localhost:4200/api/Students/true"[[Prototype]]:HttpResponseBase
enter image description here .NETenter image description hereמחזירסטטוס 200- הצליחהקודבאנגולר:enter image description hereהSERVICEenter image description hereהCOMPONENT