Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Fehler Failed to load resource: the server responded with a status of 404 ()

23.03.2021 (👁10356)

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 >----