Currently we are throwing an exception in the error handler of the request. This exception cannot be caught in a try-catch block which results in node crashing when an invalid fetch request is made. This PR fixes that issues by removing the error handler which was only being used to throw the error.
Currently we are throwing an exception in the error handler of the request. This exception cannot be caught in a try-catch block which results in node crashing when an invalid fetch request is made. This PR fixes that issues by removing the error handler which was only being used to throw the error.