{"action":"created","issue":{"url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android-Core/issues/77","labels_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android-Core/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android-Core/issues/77/comments","events_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android-Core/issues/77/events","html_url":"https://github.com/ConnectSDK/Connect-SDK-Android-Core/issues/77","id":109966095,"number":77,"title":"ServiceCommandError when casting a song","user":{"login":"softvision-octaviancudalbu","id":11849476,"avatar_url":"https://avatars.githubusercontent.com/u/11849476?v=3","gravatar_id":"","url":"https://api.github.com/users/softvision-octaviancudalbu","html_url":"https://github.com/softvision-octaviancudalbu","followers_url":"https://api.github.com/users/softvision-octaviancudalbu/followers","following_url":"https://api.github.com/users/softvision-octaviancudalbu/following{/other_user}","gists_url":"https://api.github.com/users/softvision-octaviancudalbu/gists{/gist_id}","starred_url":"https://api.github.com/users/softvision-octaviancudalbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softvision-octaviancudalbu/subscriptions","organizations_url":"https://api.github.com/users/softvision-octaviancudalbu/orgs","repos_url":"https://api.github.com/users/softvision-octaviancudalbu/repos","events_url":"https://api.github.com/users/softvision-octaviancudalbu/events{/privacy}","received_events_url":"https://api.github.com/users/softvision-octaviancudalbu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-06T09:10:15Z","updated_at":"2015-10-07T08:11:53Z","closed_at":null,"body":"We have a casting application which uses this library to cast songs to a TV\r\nThe 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\"\r\nWe use 1.6 library version\r\nI have attached the log snippet:\r\n...\r\n10-05 19:38:20.430 8537-8537/? E/: com.connectsdk.service.command.ServiceCommandError: Internal Server ErrorInternal Server Error\r\n10-05 19:38:20.430 8537-8537/? E/: com.connectsdk.service.command.ServiceCommandError: Internal Server Error\r\n10-05 19:38:20.430 8537-8537/? E/:     at com.connectsdk.service.DLNAService$6.run(DLNAService.java:834)\r\n10-05 19:38:20.430 8537-8537/? E/:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n10-05 19:38:20.430 8537-8537/? E/:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n10-05 19:38:20.430 8537-8537/? E/:     at java.lang.Thread.run(Thread.java:818)\r\n...\r\nI have investigated the matter and the error seems to be generated here, as we do not get a proper 200 response:\r\n\"try {\r\n      HttpConnection connection = createHttpConnection(targetURL);\r\n      connection.setHeader(\"Content-Type\", \"text/xml; charset=utf-8\");\r\n      connection.setHeader(\"SOAPAction\", String.format(\"\\\"%s#%s\\\"\", serviceURN, method));\r\n      connection.setMethod(HttpConnection.Method.POST);\r\n      connection.setPayload(payload);\r\n      connection.execute();\r\n      int code = connection.getResponseCode();\r\n      if (code == 200) {\r\n             Util.postSuccess(command.getResponseListener(), connection.getResponseString());\r\n      } else {\r\n              Util.postError(command.getResponseListener(), ServiceCommandError.getError(code));\r\n       }\r\n} catch (IOException e) {\r\n                    Util.postError(command.getResponseListener(), new ServiceCommandError(0, e.getMessage(), null));\r\n   }\"\r\n\r\nCould you please investigate this issue\r\nThank you"},"comment":{"url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android-Core/issues/comments/146109901","html_url":"https://github.com/ConnectSDK/Connect-SDK-Android-Core/issues/77#issuecomment-146109901","issue_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android-Core/issues/77","id":146109901,"user":{"login":"softvision-octaviancudalbu","id":11849476,"avatar_url":"https://avatars.githubusercontent.com/u/11849476?v=3","gravatar_id":"","url":"https://api.github.com/users/softvision-octaviancudalbu","html_url":"https://github.com/softvision-octaviancudalbu","followers_url":"https://api.github.com/users/softvision-octaviancudalbu/followers","following_url":"https://api.github.com/users/softvision-octaviancudalbu/following{/other_user}","gists_url":"https://api.github.com/users/softvision-octaviancudalbu/gists{/gist_id}","starred_url":"https://api.github.com/users/softvision-octaviancudalbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softvision-octaviancudalbu/subscriptions","organizations_url":"https://api.github.com/users/softvision-octaviancudalbu/orgs","repos_url":"https://api.github.com/users/softvision-octaviancudalbu/repos","events_url":"https://api.github.com/users/softvision-octaviancudalbu/events{/privacy}","received_events_url":"https://api.github.com/users/softvision-octaviancudalbu/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T08:11:53Z","updated_at":"2015-10-07T08:11:53Z","body":"Yes, it's a Samsung TV UE32EH5450W, but this also happened with an LG TV with LG Web OS 03.20.09"}}