spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
983 stars 79 forks source link

Album search returns `[null]` #1547

Open ehamberg opened 4 years ago

ehamberg commented 4 years ago

Issue found on 22 April, 2020.

Endpoint(s):

Scope(s):

Steps to reproduce:

  1. Open the API Console
  2. Call the search endpoint with q=upc%3A194660967954&type=album

Expected behaviour:

An empty list in items (no hits) or a list with one album item returned. Full response:

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Accept, App-Platform, Authorization, Content-Type, Origin, Retry-After, Spotify-App-Version, X-Cloud-Trace-Context
Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE, PATCH
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 604800
Alt-Svc: clear
Cache-Control: public, max-age=7200
Content-Type: application/json; charset=utf-8
Date: Wed, 22 Apr 2020 14:26:04 GMT
Transfer-Encoding: chunked
Via: 1.1 google
X-Robots-Tag: noindex, nofollow
content-encoding: gzip

{
    "albums": {
        "href": "https://api.spotify.com/v1/search?query=upc%3A194660967954&type=album&offset=0&limit=20",
        "items": [
            null
        ],
        "limit": 20,
        "next": null,
        "offset": 0,
        "previous": null,
        "total": 1
    }
}

Actual behaviour:

A list of one null value is returned in items.