After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 649401 - MusicBrainz now demands a User-Agent header, currently returns 503 on all requests
MusicBrainz now demands a User-Agent header, currently returns 503 on all req...
Status: VERIFIED FIXED
Product: banshee
Classification: Other
Component: Metadata
2.0.0
Other Linux
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
: 649507 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-05-04 18:10 UTC by Gabriel Speckhahn
Modified: 2011-05-07 14:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gabriel Speckhahn 2011-05-04 18:10:14 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.
Comment 1 Gabriel Burt 2011-05-04 21:02:04 UTC
Good catch, thanks Gabriel.  I'm working on a patch.
Comment 2 Gabriel Burt 2011-05-04 21:08:16 UTC
Fix committed to master and stable-2.0 branches.
Comment 3 Gabriel Speckhahn 2011-05-05 13:14:59 UTC
I compiled your fix here and it worked like a charm.

Thanks! :)
Comment 4 Gabriel Burt 2011-05-05 20:31:31 UTC
*** Bug 649507 has been marked as a duplicate of this bug. ***
Comment 5 Andrés G. Aragoneses (IRC: knocte) 2011-05-07 14:17:17 UTC
Marking VERIFIED, as per comment#3.