Giter Club home page Giter Club logo

Comments (4)

adamint avatar adamint commented on June 29, 2024

The latest version is 4.1.0, please try with that

from spotify-web-api-kotlin.

AngryJKirk avatar AngryJKirk commented on June 29, 2024

The same issue with 4.1.0

21/02/2024
15:15:53
com.adamratzman.spotify.SpotifyException$ParseException: Unable to parse {"collaborative":false,"description":"","external_urls":{"spotify":"https://open.spotify.com/playlist/0b6zN2PUiMnjLsJ2DYiScj"},"followers":{"href":null,"total":0},"href":"https://api.spotify.com/v1/playlists/0b6zN2PUiMnjLsJ2DYiScj","id":"0b6zN2PUiMnjLsJ2DYiScj","images":null,"name":"Vas3k.Music, February 2024","owner":{"display_name":"Yaroslav","external_urls":{"spotify":"https://open.spotify.com/user/0vyvjxn41lxn5tcbemyq2fbd2"},"href":"https://api.spotify.com/v1/users/0vyvjxn41lxn5tcbemyq2fbd2","id":"0vyvjxn41lxn5tcbemyq2fbd2","type":"user","uri":"spotify:user:0vyvjxn41lxn5tcbemyq2fbd2"},"primary_color":null,"public":true,"snapshot_id":"MSw4OTdlNzVmZDFhOTQ0NGJmZGJiZjdjYjQ1M2FjM2RkODM2MjIwODM5","tracks":{"href":"https://api.spotify.com/v1/playlists/0b6zN2PUiMnjLsJ2DYiScj/tracks?offset=0&limit=0","items":[],"limit":0,"next":null,"offset":0,"previous":null,"total":0},"type":"playlist","uri":"spotify:playlist:0b6zN2PUiMnjLsJ2DYiScj"} (Unexpected JSON token at offset 270: Expected start of the array '[', but had ':' instead at path: $.images

But that's definitely the problem with a type nullability, I guess serialization framework expects the images property to be non null, right?

from spotify-web-api-kotlin.

adamint avatar adamint commented on June 29, 2024

I believe you’re correct. This should be an easy fix, I will try to have a release today, though Spotify keeps making previously-non null properties nullable so I need to figure out a strategy to handle these regressions. Maybe a base serializer that knows how to create “empty” versions of types, or a transformer that uses reflection to know which properties shouldn’t be null but are

if you are in need of a workaround right now, you can attach a custom serializer to whichever playlist class this is

from spotify-web-api-kotlin.

AngryJKirk avatar AngryJKirk commented on June 29, 2024

It's fine, no hurry at all :)
Thank you!

from spotify-web-api-kotlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.