Fehler Failed to load resource: the server responded with a status of 404 ()
Server Asp Core, Frontend Angular
:4344/api/articles:1 Failed to load resource: the server responded with a status of 404 () |
sockjs.js:2999 WebSocket connection to 'wss://localhost:44344/sockjs-node/082/ckapizeh/websocket' failed: WebSocket is closed before the connection is established. |
Ursache:
der Controller Pfad wurde nicht richtig aufgerufen
Aufruf als Beispiel: Controller ->Route hier api/articles dann die Action Methode = endpoints
Hier List
Aufruf unter Angular Daten Service
Aufruf aus Angular Service mit:
Falsche API URL https://localhost:44344/api/articles vollständig mit /list
export class ArticleDataService {
private url_Api_Base: string = "https://localhost:44344/api/articles";
resultsLength = 0; isLoadingResults = true; isRateLimitReached = false;
constructor(private http: HttpClient) { } //----< get_Data_List >---- //*read web-API : entire List top20 get_Data_List(): Observable<ArticleModel[]> {
return this.http .get<ArticleModel[]>(this.url_Api_Base) .pipe( map((response: ArticleModel[]) => { return response; } ) ) } //----</ get_Data_List >---- |