Reputation: 792
I am using Angular 5! I am using HttpClient for every REST API request to my backend server.
The issue I am facing currently is that a few API requests take longer to execute i.e approximately more than 3 minutes. In such cases execution thread keeps on running on the backend rest server but the Angular calls terminate with net::ERR_EMPTY_RESPONSE
in browser and Angular throws error.
Is this the default behavior or can change settings in HttpClient
initialization to wait for the API request to complete and not time out after certain threshold limit?
As suggested : I have tried sending and observing response from both chrome and postman client and both are failing after some time.
Postman fails and gives error as : Could not get Response !
Upvotes: 1
Views: 1911