GNOME Bugzilla – Bug 649401
MusicBrainz now demands a User-Agent header, currently returns 503 on all requests
Last modified: 2011-05-07 14:17:17 UTC
Hello, Lately, when I insert an audio CD, Banshee is failing to fetch its metadata. Using Wireshark to diagnose the problem, I captured its request to the MusicBrainz service: GET /ws/1/release/?type=xml&limit=2&discid=2PhmsCZ_ZIVT6VMo.GjXcNlQu.w- HTTP/1.1 Connection: keep-alive Host: musicbrainz.org HTTP/1.1 503 Service Temporarily Unavailable Date: Wed, 04 May 2011 17:52:22 GMT Content-Type: text/plain; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Keep-Alive: timeout=20 Server: Apache/1.3.33 (Debian GNU/Linux) mod_perl/1.29 X-Rate-Limited: 50.2 50.0 10 55 Too many requests from clients of this type See http://blog.musicbrainz.org/?p=833 0 According to this comment (http://blog.musicbrainz.org/?p=833&cpage=1#comment-16976) on the blog post mentioned in the error message, this error is returned when the requesting application does not send an User-Agent string. I tested the same request externally, only adding an User-Agent header with the value "banshee" to it and the metadata was successfully returned as an XML document.
Good catch, thanks Gabriel. I'm working on a patch.
Fix committed to master and stable-2.0 branches.
I compiled your fix here and it worked like a charm. Thanks! :)
*** Bug 649507 has been marked as a duplicate of this bug. ***
Marking VERIFIED, as per comment#3.