Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-978

API returns 200 for non existing user

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • API
    • None

      Trying to visit the page of a user that doesn't seem to exist anymore: https://listenbrainz.org/user/NcOaujs/
      However I can query the API and get a response: https://api.listenbrainz.org/1/user/NcOaujs/listens

      Same goes for random string of characters as user name, I get a 200 response back instead of the 404 I'd expect.
      The same goes for the listen-count endpoint and I would assume others too.

      {
      "payload": {
      "count": 0,
      "latest_listen_ts": 0,
      "listens": [],
      "user_id": "kljhgfchjklnbvghjknbvghjk"
      }
      } 

            kartik1712 amCap1712
            mr_monkey Monkey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package