Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
5k views

My AuthInterceptor.intercept method is not getting called. Putting all necessary codes below. My code flow: FormSubmit() method from login.component calls the generateToken() method from login.service(...
Vivek Dama's user avatar
-1 votes
1 answer
126 views

I made an interceptor-service for adding a auth-header to every HTTP-request. Service @Injectable () export class HttpInterceptorService implements HttpInterceptor { token : string = undefined; ...
chris01's user avatar
  • 12.7k
0 votes
1 answer
203 views

I've recently updated my app to Angular 17 and I'm getting this weird error at compile time: ./node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs:2016:81-103 Error: export '...
Francesco Borzi's user avatar
1 vote
2 answers
3k views

Hey everyone so I am new to Angular i am stuck at this error : ERROR NullInjectorError: R3InjectorError(Standalone[_AppComponent])[_ApiCallServiceService -> _ApiCallServiceService -> _HttpClient ...
Ankit Chauhan's user avatar
1 vote
1 answer
1k views

I am running HTTP requests against an API which occasionally is super slow, meaning I need to extend its timeout value. The API returns a simple JSON array of Dimension objects. This my POST request ...
Aileron79's user avatar
  • 987
35 votes
10 answers
68k views

I'm working on a personal project with Angular 17, and there are some settings that I get from the backend of my application. But my Angular HttpClient does not work and honestly I don't know why not. ...
Vitão's user avatar
  • 363
0 votes
1 answer
664 views

I am in the process of developing an Angular frontend application for my .NET 7 backend WebApi, and I have encountered a strange issue that I cannot find the proper solution or root-cause for. The ...
Lasse Jonassen's user avatar
0 votes
1 answer
2k views

I want stream real time data from server to client. We are using Angular 16. I want to intercept the Request and Response of WebSockets, Server Sent Events (SSE) and ReadableStream using Angular ...
Hari Prasad's user avatar
0 votes
0 answers
137 views

I want to create an interceptor (or any other solution that will affect all the services), that will hold the POST requests for ~300ms and in case there are new POST requests in that time gap, will ...
Harel Malichi's user avatar
1 vote
1 answer
2k views

I'm testing the brand new release of Angular 17 with Universal SSR and non-destructive hydration and I've noticed a peculiar behavior. In my test component, I have both GET and POST requests being ...
Lucas Tesseron's user avatar
0 votes
0 answers
238 views

I have a Post API call which is working fine in Postman with certificate(CRT and Key file). While calling this api from frontend, I am getting 'HttpErrorResponse' error on browser. Do i need to ...
Cpui's user avatar
  • 71
1 vote
1 answer
194 views

I am currently studying Angular and ASP.NET Core Web API but I can't resolve the error regarding HttpClient. Main error message: ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(...
Jeroneey's user avatar
-1 votes
1 answer
81 views

I want to read a json, save it in an array and after doing changes to said array, replace the information in the json with the new information in the array. I have this model export class User{ id : ...
CabbageMan's user avatar
0 votes
0 answers
42 views

I have the following class: export class FileData { get name(): string { return this.#name || (this.data ? `Unnamed.${this.data.match(/[^:/]\w+(?=;|,|\+)/)?.[0]}` : '') } set name(name: string) { ...
Otto Abnormalverbraucher's user avatar
-1 votes
1 answer
1k views

I'm trying to do a http client get from my Angular 16 solution. I have created an app\models folder that contains the request and response models that I intend to use with the angular client. I would ...
Paul's user avatar
  • 99
10 votes
1 answer
24k views

I'm creating a standalone app from scratch, I don't have an ngModule. I'm creating a translation service, and a pipe to use it. testing it on app.component.ts import { Component, OnInit } from '@...
monxas's user avatar
  • 2,657
0 votes
2 answers
922 views

I cant get the HttpClient request to be fired. Probably it is some importing or providing issue, but can't find where it is. The API does work, but never gets called. As for the environment/versions: ...
Neophyte's user avatar
  • 164
0 votes
1 answer
337 views

I have an Universal app with TransferHttpCacheModule addet to app.module.ts like that: @NgModule({ ... imports: [ BrowserModule, TransferHttpCacheModule, AppRoutingModule, ], ...
ufollettu's user avatar
  • 882
0 votes
1 answer
70 views

In my service: public sendUpdate(idBombeamento:number): Observable<any>{ const headers = new HttpHeaders({ 'Content-Type': 'application/json', 'Authorization': `...
Rodrigo Steinhorst's user avatar
-1 votes
1 answer
82 views

I have been trying to read a text file and store the data and use it later but once the scope of variable is over the variable gets cleared. I have been trying to utilize the data throughout the ...
Ron's user avatar
  • 103
0 votes
0 answers
70 views

I'm facing an issue with an Angular HTTP request that's failing when trying to retrieve data from a specific API endpoint. The request works fine in Postman and functions as expected when using ...
shuvo's user avatar
  • 165
0 votes
1 answer
312 views

I have a simple API call to make within Angular using the http client: return this.http.get('https://api.someexternalapi.com').pipe( map((response) => response), catchError(error => of(...
Sun's user avatar
  • 4,808
2 votes
1 answer
1k views

I can't seem to find a complete example of how to handle a complex Angular HTTP response. I am using Angular 16. The backend API I am trying to communicate with supplies a DTO (Data Transfer Object) ...
Scottish Smile's user avatar
1 vote
2 answers
414 views

I have set a HttpInterceptor for setting an api key in the request headers: export const authInterceptor: HttpInterceptorFn = (req, next) => { console.log('authInterceptor'); console.log('...
mattinsalto's user avatar
  • 2,426
0 votes
2 answers
587 views

// inject the httpclient protected _http: HttpClient = inject(HttpClient); // this is how I create the options const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/tcc' ...
sander's user avatar
  • 1,734
1 vote
1 answer
1k views

I recently switched HTTP calls from the Cordova plugin to CapacitorHttp, and having sporadic issues with IOS (only). Using the latest Ionic 7.2.2 and Capacitor 5.2.2. Running against a back-end web ...
Various Artist's user avatar
1 vote
1 answer
2k views

I am developing an Angular application using its HttpClient. I found that fetch() Api does support the useful keepalive option to maintain the connection beyond the livetime of the html page. fetch(...
pesche666's user avatar
  • 179
0 votes
1 answer
156 views

server middleware config: @app.middleware("http") async def inspector(request: Request, call_next): print(f"{request.method} {request.url}") response = await call_next(...
Lee Skies's user avatar
2 votes
0 answers
225 views

I am trying to use the getStreamUserToken function from Firebase Authenticate with Stream Chat extension in an Angular client-side application. However, my implementation is not working as expected. ...
syahiruddin's user avatar
0 votes
1 answer
47 views

I have a code that calls http post and recieves the observable notification when data is recieved . I wish to know how to get the json respose from the server in the following function since when I ...
mark's user avatar
  • 23
0 votes
1 answer
388 views

Please find my below use case: There is a backend web service developed in Java running at http://localhost:8080 and an angular UI application running at http://localhost:4200. Now my requirement is ...
Rohit's user avatar
  • 480
0 votes
1 answer
1k views

My Angular version is 16.0.1 and I try fetch data from Api https://dummy.restapiexample.com/api/v1/employees this is my Model export interface Emploee { employee_name: string; } My service is import {...
sunny's user avatar
  • 2,765
-1 votes
1 answer
43 views

I have the following code: getElements(apiUrl: string): Observable<Element[]> { return this.httpClient.get<any>(apiUrl + 'test/elements').pipe( catchError(error => { ...
BDM_45's user avatar
  • 3
0 votes
1 answer
841 views

For some reason I can't get my Angular 15 app to send an http request. I'm used to an older version of Angular so I wonder if it's some configuration I'm missing or something. I also already added ...
user6680's user avatar
  • 129
2 votes
0 answers
406 views

I'm calling my backend (multiple microservices) inside my Angluar SPA and I'm getting this error: As you see, there is a response (so the request aimed to the right path ect.) but the browser seems ...
Axel Herrmann's user avatar
0 votes
1 answer
70 views

I have the following typescript type: export class Status { static readonly DONE = new Status('DONE', 'p-tag-green'); static readonly PENDING = new Status('PENDING', 'p-tag-yellow'); private ...
LIvanov's user avatar
  • 1,348
1 vote
1 answer
11k views

After updating one of my project from angular 9 to 15 I'm getting below issue. any help would be appreciated. I'm stuck in it for more then 2 weeks. app-lib.module.ts in the angular library. import { ...
karthick ravindranath's user avatar
0 votes
1 answer
302 views

I'm trying to get all headers from the response to a post method: this.http.post<User>(this.url, user, { observe: 'response', responseType: 'json', }) .subscribe((res)...
Nadirspam's user avatar
  • 309
-1 votes
1 answer
45 views

I have a todo-list component and I'd like to populate that component with a todo-service. This service is grabbing the data from a local JSON file. My todo-list component looks like this: import 'zone....
onTheInternet's user avatar
0 votes
1 answer
610 views

So I am having trouble Iterating through an array. Angular does not show all the data. It only shows the data at the specific location. This is the Component export class LiveComponent implements ...
soobnaibot's user avatar
-1 votes
1 answer
88 views

I have this component where I am pulling data from a REST API using the HttpClient. The pulling of the data works well. I could tell because I could see the data being displayed in Console Log. When ...
soobnaibot's user avatar
0 votes
1 answer
228 views

I am developing a website with Angular 15 and I get the data from two APIs. One is public (The Movie Database) and I had no problem working with it. I developed the other one and is deployed on my ...
BeaBP's user avatar
  • 3
2 votes
1 answer
6k views

I use interceptor like this export class ServerErrorInterceptor implements HttpInterceptor { constructor( private appMessageService: AppMessageService) { } intercept(request: ...
dartNNN's user avatar
  • 196
1 vote
2 answers
110 views

I have created a simple test project to learn some Angular basics such as CRUD functions, ngFor, and HttpClient methods (get, post). Now I have created a Firebase database with an API key and added ...
user avatar
0 votes
1 answer
816 views

I've created a component "form-page" in the "form" module: form-page.component.html: <form [formGroup]="form" (submit)="onSubmit()"> <div> ...
zack's user avatar
  • 53
-1 votes
1 answer
2k views

I have some frontend code, which sends out an HTTPClient.get request to a Lambda function I have. It's working fine. But I started thinking about how to explore the limits of HTTPClient and fell short ...
cien's user avatar
  • 61
0 votes
1 answer
488 views

I'm using Angular 13 and I can pull data with httpClient. But I want to pull data by sending parameter. How can I do this by sending parameters like below? inventory.ts this.inventoryService....
fatihgun's user avatar
0 votes
1 answer
458 views

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 ...
Riley Hughes's user avatar
  • 1,524
2 votes
1 answer
691 views

I'm trying to send a post request to a json file in typescript, Angular with HttpClient. However, I get a 404 not found error, saying it cannot fine the file results.json. I find this weird because ...
Dave Saenen's user avatar
2 votes
1 answer
631 views

I'm trying to get some data from a mysql database. The backend seems to work fine, the data is being logged there but not in the frontend. app.post('/api/user/database_test', (req, res, next) => { ...
helloworld's user avatar

1 2
3
4 5
32