My server calls are taking a long time, around 30-40 minutes, and my Angular frontend is timing out. Is there a way to increase the default timeout for this service call?
method1(id: number): Promise<number> {
const body= JSON.stringify(id);
return sendReq.post(url, body)
.then((res) => res)
.catch((err: any) => {
});
}
I've heard about a property called timeout
, but I'm not sure how to integrate it into the code above. Can someone provide guidance on this issue?