Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Android SDK ContentAPI.getRecommendedContentItems("default") crashes with ClassCastException

Solved!

Android SDK ContentAPI.getRecommendedContentItems("default") crashes with ClassCastException

Plan

Premium

Country

USA

Device

Sony Xperia 5 IV

Operating System

Android 14

 

My Question or Issue

Recently, Spotify App Control for Android (both 0.7.2 and 0.8.0) has stopped returning Browse results to my client app. It seems that Spotify is returning some class descriptors that aren't able to be deserialized:

com.spotify.protocol.client.error.RemoteClientException: "java.lang.ClassCastException"
at com.spotify.protocol.client.RemoteWampClient.getRemoteClientException(RemoteWampClient.java:130)
at com.spotify.protocol.client.RemoteWampClient.access$200(RemoteWampClient.java:16)
at com.spotify.protocol.client.RemoteWampClient$1.onError(RemoteWampClient.java:107)
at com.spotify.protocol.client.WampRouterImpl.routeError(WampRouterImpl.java:75)
at com.spotify.protocol.client.WampRouterImpl.route(WampRouterImpl.java:46)
at com.spotify.protocol.client.AppProtocolCommunicator.onData(AppProtocolCommunicator.java:77)
at com.spotify.android.appremote.internal.RemoteServiceIo.handleMessage(RemoteServiceIo.java:108)
at com.spotify.android.appremote.internal.RemoteServiceIo.access$000(RemoteServiceIo.java:45)
at com.spotify.android.appremote.internal.RemoteServiceIo$IncomingHandler.handleMessage(RemoteServiceIo.java:86)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8223)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:977)

It seems other browse locations work, such as "com.spotify.your-library" and "com.spotify.browse". Can someone look into why Recommended Items is no longer working?

Reply

Accepted Solutions
Marked as solution

It appears that the Spotify update from 8.9.50.552 to 8.9.52.552 fixed the issue.

View solution in original post

1 Reply
Marked as solution

It appears that the Spotify update from 8.9.50.552 to 8.9.52.552 fixed the issue.

Suggested posts

Staff
Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

Staff
ModeratorStaff / Moderator/ 4 years ago  in Social & Random

Type a product name