.NET core controller not receiving correct input from query string

I have an Angular client making requests to a .NET core API. There are two functions that are nearly identical, one works, and the other does not. I can not figure out what the difference is. Here are the two functions on the client side using the angular/common/httpclient: getInstitutionSettings(institutionId: string): Promise<any | undefined> { return… Read More .NET core controller not receiving correct input from query string

Angular display Http GET response body

i’m learning Angular and i have small problem with display responded data after HTTP get. I’, requesting: private url = ‘http://localhost:8070/app&#8217;; private descriptors = ‘/myapp/test’; constructor(private http: HttpClient) { } getDescriptors(): Observable<Descriptor[]> { let params = new HttpParams().set(‘methodType’, ‘firstVar’).set(‘provider’, ‘secondVar’); return this.http .get<Descriptor[]>(this.url + this.descriptors, {params}) .pipe(tap(console.log)); } Additionally, i have component response: any; getDescriptors(){… Read More Angular display Http GET response body

Error method on Angular rxjs subscription not beeing executed at all

I’ve a component that makes a http request to nodejs backend. The component is using a service without using ngrx. The problem is that when i receive an error response from backend, it doesn’t execute the code from error method on the subscribe. I’m able to see the status code and message from devtools only.… Read More Error method on Angular rxjs subscription not beeing executed at all