Skip Menu |

This queue is for tickets about the WebService-MusicBrainz CPAN distribution.

Report information
The Basics
Id: 42186
Status: rejected
Priority: 0/
Queue: WebService-MusicBrainz

People
Owner: Nobody in particular
Requestors: email [...] pbryan.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.20
Fixed in: (no value)



Subject: Retry (and/or return undef) on HTTP exceptions
Currently, Query::get simply dies if it gets a response other than 200. Realistically, the MusicBrainz server gets busy, and will return 503. Other queries return 404 (e.g. unrecognized MBID). Dying in these circumstances seems a bit of a steep price for the caller to pay. A wishlist item would be for the get subroutine to either retry and/or return an undefined response object.
Alternatively, if I know I can safely eval and retry myself, then perhaps this wish list item should be closed.
eval is a safe and effective method.