Open ahmedisam99 opened 5 years ago
https://github.com/GSG-G7/autocomplete-movie/blob/5c8f4e3ff03ef0d59964cd267fec6b1aaeb0139c/src/handlers/getMovieDetailsHandler.js#L7-L13
In the lines above if an error occurred from the request module the server will attend to send two responses, which is wrong.
request
The server wouldn't crash, but it does not mean it's right :wink:
https://github.com/GSG-G7/autocomplete-movie/blob/5c8f4e3ff03ef0d59964cd267fec6b1aaeb0139c/src/handlers/getMovieDetailsHandler.js#L7-L13
In the lines above if an error occurred from the
request
module the server will attend to send two responses, which is wrong.The server wouldn't crash, but it does not mean it's right :wink: