android-sdk
android-sdk copied to clipboard
Timeout running com.spotify.play_spotify_uri
Thanks for your interest in the Spotify App Remote SDK! If you're submitting a bug, please use the following template. If your issue is a feature request, please include your use-case so that we have all the necessary info.
Issue found on DATE.
SDK Version:
auth: 1.2.3 app-remote: 0.7.0
OS Version:
Android 5.1
Scope(s):
Steps to reproduce:
-
PlayerApi playerApi = mSpotifyAppRemote.getPlayerApi(); CallResult<Empty> callResult = playerApi.play("spotify:track:3gdewACMIVMEWVbyb8O9sY"); callResult.setResultCallback(empty -> {
}).setErrorCallback(throwable -> { LogUtils.eTag(TAG, "playMusic: exception"); });
-
The callback return error, the stack information of exception:
com.spotify.protocol.client.error.RemoteClientException: "Timeout running com.spotify.play_spotify_uri" 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:113) at com.spotify.android.appremote.internal.RemoteServiceIo.access$000(RemoteServiceIo.java:47) at com.spotify.android.appremote.internal.RemoteServiceIo$IncomingHandler.handleMessage(RemoteServiceIo.java:91) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:194) at android.os.HandlerThread.run(HandlerThread.java:61)
Expected behaviour:
play music success
Actual behaviour:
I think I have the same problem, but can't reproduce all the time. Instead of calling the play
function I call skip_to_index
which is the same as play just inside a album with an offset.
com.spotify.protocol.client.error.RemoteClientException: "Timeout running com.spotify.skip_to_index
@tobika I have also encountered this issue today for the first time. And regarding skipToIndex I have also encountered issues - https://github.com/spotify/android-sdk/issues/278.
@JakeHao I have also got this error today after some hours of inactivity. The spotifyAppRemote object was alive, connected, but still I got this error "Timeout running com.spotify.play_spotify_uri". So the only solution was to restart the app which meant spotifyAppRemote.disconnect and reconnect and worked ok. But I do not know exactly how to approach this error because it comes randomly and it does not have clear reproduction steps. It took me 20-40 seconds to get this error callback.