spotify-api / spotify-api.js

A complete wrapper for spotify web api for deno, node.js and the browser.
https://spotify-api.js.org
MIT License
211 stars 19 forks source link

Podcast track returning null #147

Closed niveKKumar closed 1 year ago

niveKKumar commented 2 years ago

Bug Report

What i expected:

 const test = await spot.playlists.getTracks("0vRxeAksQ8ppt6TzxGV7qG");
 console.log(`🚀 ~ loadPodcastInfos ~ test`, test);

Expected output: https://developer.spotify.com/console/get-playlist-tracks/

  "items": [
    {
      "added_at": "2022-05-11T19:49:45Z",
      "added_by": {
        "external_urls": {
          "spotify": "https://open.spotify.com/user/6xq5zvte0qs0lytr6ccb5wne8"
        },
        "href": "https://api.spotify.com/v1/users/6xq5zvte0qs0lytr6ccb5wne8",
        "id": "6xq5zvte0qs0lytr6ccb5wne8",
        "type": "user",
        "uri": "spotify:user:6xq5zvte0qs0lytr6ccb5wne8"
      },
      "is_local": false,
      "primary_color": null,
      "track": {
        "album": {
          "album_type": "compilation",
          "artists": [
            {
              "external_urls": {
                "spotify": "https://open.spotify.com/show/79CkJF3UJTHFV8Dse3Oy0P"
              },
              "href": "https://api.spotify.com/v1/shows/79CkJF3UJTHFV8Dse3Oy0P",
              "id": "79CkJF3UJTHFV8Dse3Oy0P",
              "name": "Huberman Lab",
              "type": "show",
              "uri": "spotify:show:79CkJF3UJTHFV8Dse3Oy0P"
            }

What actually happened:

image track:null

To reproduce this bug:

scientific-dev commented 2 years ago

image

It works very well. And, by the way use the new version of v9.2.2 where it is fixed.

scientific-dev commented 1 year ago

Closing this as the issue is fixed. If you face further issues, create a new issue.