Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hufman opened this issue Jun 25, 2024 · 1 comment

Comments

@hufman
Copy link

hufman commented Jun 25, 2024

Issue found on 2024-06-24.

SDK Version:

0.7.2 and 0.8.0

OS Version:

Android 14

Scope(s):

Steps to reproduce:

  1. remote.contentApi.getRecommendedContentItems("default")

Expected behaviour:

The Result Callback will be given a list of top-level browseable entries.

Actual behaviour:

The Error Callback is given the following Throwable:

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)
@hufman
Copy link
Author

hufman commented Jun 25, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant