We are utilizing Angular 6 along with NGXS for State Management in our web application.
One specific server call is causing issues, while all other similar calls work fine. Interestingly, this particular call functions without any problems on our dev environments.
It is worth noting that both our server environment and local dev environment share the same database.
https://i.sstatic.net/VpY2h.png (I am unable to post images due to reputation constraints)
The response indicates that the URL is empty and none of the test params are included in the response.
Upon server logging, it appears that the call never reaches the controller and no exceptions are thrown. Using Fiddler, there is no indication of communication with the API.
protected getEntities(viewContext: ViewContext, entityQuery: TEntityQuery, pagingContext: PagingContext): Observable<QueryResult<TEntity[]>> {
const params = this.requestUtilsService.getHttpParams(entityQuery, viewContext, pagingContext);
this.logger.log('sending entity query with params', params);
const entitiesUrl = this.getEntitiesUrl();
return this.http.get<TEntity[]>(entitiesUrl, { params: params, observe: 'response' }).pipe(
map(resp => this.responseUtilsService.getQueryResult(resp))
);
}
I anticipate receiving a list of entities or a server error. I expect the TypeScript code to successfully communicate with the API.