You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a casting application which uses this library to cast songs to a TV
The issue we are experiencing often and quite random, is that at some point, generally when changing audio tracks, or at the beginning of a track, we get "ServiceCommandError"
We use 1.6 library version
I have attached the log snippet:
...
10-05 19:38:20.430 8537-8537/? E/: com.connectsdk.service.command.ServiceCommandError: Internal Server ErrorInternal Server Error
10-05 19:38:20.430 8537-8537/? E/: com.connectsdk.service.command.ServiceCommandError: Internal Server Error
10-05 19:38:20.430 8537-8537/? E/: at com.connectsdk.service.DLNAService$6.run(DLNAService.java:834)
10-05 19:38:20.430 8537-8537/? E/: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
10-05 19:38:20.430 8537-8537/? E/: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
10-05 19:38:20.430 8537-8537/? E/: at java.lang.Thread.run(Thread.java:818)
...
I have investigated the matter and the error seems to be generated here, as we do not get a proper 200 response:
"try {
HttpConnection connection = createHttpConnection(targetURL);
connection.setHeader("Content-Type", "text/xml; charset=utf-8");
connection.setHeader("SOAPAction", String.format(""%s#%s"", serviceURN, method));
connection.setMethod(HttpConnection.Method.POST);
connection.setPayload(payload);
connection.execute();
int code = connection.getResponseCode();
if (code == 200) {
Util.postSuccess(command.getResponseListener(), connection.getResponseString());
} else {
Util.postError(command.getResponseListener(), ServiceCommandError.getError(code));
}
} catch (IOException e) {
Util.postError(command.getResponseListener(), new ServiceCommandError(0, e.getMessage(), null));
}"
Could you please investigate this issue
Thank you
The text was updated successfully, but these errors were encountered:
We have a casting application which uses this library to cast songs to a TV
The issue we are experiencing often and quite random, is that at some point, generally when changing audio tracks, or at the beginning of a track, we get "ServiceCommandError"
We use 1.6 library version
I have attached the log snippet:
...
10-05 19:38:20.430 8537-8537/? E/: com.connectsdk.service.command.ServiceCommandError: Internal Server ErrorInternal Server Error
10-05 19:38:20.430 8537-8537/? E/: com.connectsdk.service.command.ServiceCommandError: Internal Server Error
10-05 19:38:20.430 8537-8537/? E/: at com.connectsdk.service.DLNAService$6.run(DLNAService.java:834)
10-05 19:38:20.430 8537-8537/? E/: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
10-05 19:38:20.430 8537-8537/? E/: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
10-05 19:38:20.430 8537-8537/? E/: at java.lang.Thread.run(Thread.java:818)
...
I have investigated the matter and the error seems to be generated here, as we do not get a proper 200 response:
"try {
HttpConnection connection = createHttpConnection(targetURL);
connection.setHeader("Content-Type", "text/xml; charset=utf-8");
connection.setHeader("SOAPAction", String.format(""%s#%s"", serviceURN, method));
connection.setMethod(HttpConnection.Method.POST);
connection.setPayload(payload);
connection.execute();
int code = connection.getResponseCode();
if (code == 200) {
Util.postSuccess(command.getResponseListener(), connection.getResponseString());
} else {
Util.postError(command.getResponseListener(), ServiceCommandError.getError(code));
}
} catch (IOException e) {
Util.postError(command.getResponseListener(), new ServiceCommandError(0, e.getMessage(), null));
}"
Could you please investigate this issue
Thank you
The text was updated successfully, but these errors were encountered: