mihaeu / movie-manager

Organize, list, search and filter your movie collection.
4 stars 1 forks source link

Guzzle exception bubbling up #6

Open mihaeu opened 9 years ago

mihaeu commented 9 years ago

When trying to manage the movie Dogville I got the following exception:

[Guzzle\Http\Exception\ServerErrorResponseException]                                                           
  Server error response                                                                                          
  [status code] 504                                                                                              
  [reason phrase] Gateway Time-out                                                                               
  [url] http://api.themoviedb.org/3/search/movie?page=1&query=dogville&api_key=123456789

The error could not be reproduced.

try & catch?

mihaeu commented 8 years ago

The best idea would probably to catch all non-recoverable errors at the highest level and to skip that movie. The app should never fail because a single movie cannot be handled.