API endpoints need a revision to ensure all errors are caught. Some of the endpoints only send a response to the client when the queries to the database are completed successfully, but if a parameter is badly constructed, the query fails and the server doesn't response, leading to a timeout.
Also in some cases, there's a condition where the server should send an error and stop the execution, but just sending a response with express doesn't stop the flow of the function, it must return.
API endpoints need a revision to ensure all errors are caught. Some of the endpoints only send a response to the client when the queries to the database are completed successfully, but if a parameter is badly constructed, the query fails and the server doesn't response, leading to a timeout.
Also in some cases, there's a condition where the server should send an error and stop the execution, but just sending a response with express doesn't stop the flow of the function, it must return.