Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-3245

500 Internal Server Error when submitting release ratings via the web service

XMLWordPrintable

      When trying to submit a rating for a release via the webservice, for example,

      POST http://musicbrainz.org/ws/2/rating?client=WebService-MusicBrainz-NGS-TestSuite-0.01
      Content-Type: application/xml; charset=utf-8

      <?xml version="1.0" encoding="UTF-8"?>
      <metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#"><release-list><release id="60952a6e-895e-4270-9bbe-f65a7c6035f8"><user-rating>100</user-rating></release></release-list></metadata>

      the server responds with an internal server error. The relevant line within the html returned seems to be,

      Caught exception in MusicBrainz::Server::Controller::WS::2::Rating->rating_submit "Can't locate object method "rating" via package "MusicBrainz::Server::Data::Release" at /home/musicbrainz/musicbrainz-server/script/../lib/MusicBrainz/Server/Controller/WS/2/Rating.pm line 63."

      Submitting ratings for artists, labels, recordings, release-groups and works is fine.

            acid2 Oliver Charles
            cjk32 Christopher Key
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                Bug fixes, 2011-08-22