Skip to content
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

SpotifyAppRemote.getConnectApi().connectSetVolume(newVolume) throwing exception #336

Open
mlenger opened this issue Nov 14, 2022 · 0 comments

Comments

@mlenger
Copy link

mlenger commented Nov 14, 2022

Issue found on 2022-11-14.

SDK Version: 0.7.4

OS Version: Any Android version

Scope(s): app-remote-control

Steps to reproduce:

  1. Connect to Player according to documentation
  2. Call connection.connectApi.connectSetVolume(0.5f)

Expected behaviour:

Volume is adapted to new volume level. This used to work until some recent update of the Spotify app.

Actual behaviour:

Exception from Remote:

Caused by com.spotify.protocol.client.error.RemoteClientException: "java.lang.IllegalArgumentException"
at com.spotify.protocol.client.RemoteWampClient.getRemoteClientException(RemoteWampClient.java:139)
at com.spotify.protocol.client.RemoteWampClient.access$200(RemoteWampClient.java:16)
at com.spotify.protocol.client.RemoteWampClient$1.onError(RemoteWampClient.java:116)
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:78)
at com.spotify.android.appremote.internal.RemoteServiceIo.handleMessage(RemoteServiceIo.java:111)
at com.spotify.android.appremote.internal.RemoteServiceIo.access$000(RemoteServiceIo.java:45)
at com.spotify.android.appremote.internal.RemoteServiceIo$IncomingHandler.handleMessage(RemoteServiceIo.java:89)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

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