I am having trouble sending a custom error message when HTTP timeout.
Here is a simple example:
return this._http.get(url).timeout(5000, new Error("Error message"));
I saw that everyone is using a new error ("Error Message") , but I get an error message:
The error function expects the type Scheduler. I get this error: An argument of type “Error” is not assigned to a parameter of type “Scheduler”. The SchedulerAction property is missing from the Error type
source
share