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

Web Service lookup sometimes serves XML when asked for JSON via the Accept header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • Web service
    • None

      A GET https://musicbrainz.org/ws/2/artist/51823891-6035-4d6c-a007-b70a86747023?inc=url-rels, with Accept: application/json in the headers is returning an XML result.

      The same request with a different inc value (e.g. inc=aliases) returns JSON just fine.

      A request with inc=url-rels but a different artist ID (e.g. 51823891-6035-4d6c-a007-b70a86747023) also returns JSON.

      Based a test in the browser using https://musicbrainz.org/ws/2/artist/51823891-6035-4d6c-a007-b70a86747023?inc=url-rels&fmt=json does return JSON, so it seems like some subset of requests is somehow losing the request for JSON (but only when requested via the Accept header, not via the fmt query parameter).

            zas Zas
            zastai Tim Van Holder
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package