{"action":"created","issue":{"url":"https://api.github.com/repos/appium/java-client/issues/671","repository_url":"https://api.github.com/repos/appium/java-client","labels_url":"https://api.github.com/repos/appium/java-client/issues/671/labels{/name}","comments_url":"https://api.github.com/repos/appium/java-client/issues/671/comments","events_url":"https://api.github.com/repos/appium/java-client/issues/671/events","html_url":"https://github.com/appium/java-client/issues/671","id":243974821,"node_id":"MDU6SXNzdWUyNDM5NzQ4MjE=","number":671,"title":"UnsupportedCommandException: getSession error occurs when setting timeout for appium android webdriver","user":{"login":"thaitrongnghi","id":24771035,"node_id":"MDQ6VXNlcjI0NzcxMDM1","avatar_url":"https://avatars1.githubusercontent.com/u/24771035?v=4","gravatar_id":"","url":"https://api.github.com/users/thaitrongnghi","html_url":"https://github.com/thaitrongnghi","followers_url":"https://api.github.com/users/thaitrongnghi/followers","following_url":"https://api.github.com/users/thaitrongnghi/following{/other_user}","gists_url":"https://api.github.com/users/thaitrongnghi/gists{/gist_id}","starred_url":"https://api.github.com/users/thaitrongnghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaitrongnghi/subscriptions","organizations_url":"https://api.github.com/users/thaitrongnghi/orgs","repos_url":"https://api.github.com/users/thaitrongnghi/repos","events_url":"https://api.github.com/users/thaitrongnghi/events{/privacy}","received_events_url":"https://api.github.com/users/thaitrongnghi/received_events","type":"User","site_admin":false},"labels":[{"id":267794774,"node_id":"MDU6TGFiZWwyNjc3OTQ3NzQ=","url":"https://api.github.com/repos/appium/java-client/labels/Needs%20investigation","name":"Needs investigation","color":"eb6420","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-07-19T09:18:02Z","updated_at":"2018-06-21T07:40:13Z","closed_at":"2017-11-25T20:03:14Z","author_association":"NONE","body":"## Environment\r\nOS:  macOS Sierra\r\nappium-java-client:  5.0.0-BETA6\r\nSelenium version:   3.4.0\r\nOthers: IntelliJ, Java 1.8.0_121-b13\r\n\r\n## Actual Behavior\r\nIt gives an error at step \"driver = new AndroidDriver<>(executor, capabilities);\" in my below script.\r\norg.openqa.selenium.UnsupportedCommandException: getSession\r\nBuild info: version: '3.4.0', revision: 'unknown', time: 'unknown'\r\nSystem info: host: 'C02MF0LKF5YV', ip: '192.168.1.76', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12', java.version: '1.8.0_121'\r\nDriver info: driver.version: AndroidDriver\r\n\r\n\tat org.openqa.selenium.remote.http.AbstractHttpCommandCodec.encode(AbstractHttpCommandCodec.java:220)\r\n\tat org.openqa.selenium.remote.http.AbstractHttpCommandCodec.encode(AbstractHttpCommandCodec.java:118)\r\n\tat io.appium.java_client.remote.AppiumCommandExecutor.doExecute(AppiumCommandExecutor.java:130)\r\n\tat io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:162)\r\n\tat org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)\r\n\tat io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:46)\r\n\tat io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)\r\n\tat io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)\r\n\tat io.appium.java_client.HasSessionDetails.getSessionDetails(HasSessionDetails.java:36)\r\n\tat io.appium.java_client.HasSessionDetails.getSessionDetail(HasSessionDetails.java:42)\r\n\tat io.appium.java_client.HasSessionDetails.getPlatformName(HasSessionDetails.java:46)\r\n\tat io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:100)\r\n\tat io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:63)\r\n\tat kobiton.com.testng.AndroidAppTest.Setup(AndroidAppTest.java:45)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)\r\n\tat org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:523)\r\n\tat org.testng.internal.Invoker.invokeConfigurations(Invoker.java:224)\r\n\tat org.testng.internal.Invoker.invokeConfigurations(Invoker.java:146)\r\n\tat org.testng.TestRunner.beforeRun(TestRunner.java:626)\r\n\tat org.testng.TestRunner.run(TestRunner.java:594)\r\n\tat org.testng.SuiteRunner.runTest(SuiteRunner.java:380)\r\n\tat org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)\r\n\tat org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)\r\n\tat org.testng.SuiteRunner.run(SuiteRunner.java:289)\r\n\tat org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)\r\n\tat org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)\r\n\tat org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)\r\n\tat org.testng.TestNG.runSuitesLocally(TestNG.java:1226)\r\n\tat org.testng.TestNG.runSuites(TestNG.java:1144)\r\n\tat org.testng.TestNG.run(TestNG.java:1115)\r\n\tat org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:72)\r\n\tat org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:127)\r\n\r\n## My script:\r\n DesiredCapabilities capabilities = new DesiredCapabilities();\r\n capabilities.setCapability(\"deviceOrientation\", \"portrait\");\r\n capabilities.setCapability(\"app\", \"/Users/local/Downloads/appTest.apk\");\r\n capabilities.setCapability(\"platformName\",\"Android\");\r\n capabilities.setCapability(\"deviceName\", \"HTC\");\r\n\r\n int con_timeout = 1200000;\r\n int soc_timeout = 90000;\r\n ApacheHttpClient.Factory clientFactory = new ApacheHttpClient.Factory(new \r\n HttpClientFactory(con_timeout, soc_timeout));\r\n AppiumCommandExecutor executor = new AppiumCommandExecutor(new HashMap<String, \r\n AppiumCommandInfo>(), new URL(\"http://localhost:4723/wd/hub\"), clientFactory);\r\n driver = new AndroidDriver<>(executor, capabilities);\r\n driver.launchApp();\r\n sleep(200);\r\n"},"comment":{"url":"https://api.github.com/repos/appium/java-client/issues/comments/399006747","html_url":"https://github.com/appium/java-client/issues/671#issuecomment-399006747","issue_url":"https://api.github.com/repos/appium/java-client/issues/671","id":399006747,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTAwNjc0Nw==","user":{"login":"syamsasi99","id":19327735,"node_id":"MDQ6VXNlcjE5MzI3NzM1","avatar_url":"https://avatars2.githubusercontent.com/u/19327735?v=4","gravatar_id":"","url":"https://api.github.com/users/syamsasi99","html_url":"https://github.com/syamsasi99","followers_url":"https://api.github.com/users/syamsasi99/followers","following_url":"https://api.github.com/users/syamsasi99/following{/other_user}","gists_url":"https://api.github.com/users/syamsasi99/gists{/gist_id}","starred_url":"https://api.github.com/users/syamsasi99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syamsasi99/subscriptions","organizations_url":"https://api.github.com/users/syamsasi99/orgs","repos_url":"https://api.github.com/users/syamsasi99/repos","events_url":"https://api.github.com/users/syamsasi99/events{/privacy}","received_events_url":"https://api.github.com/users/syamsasi99/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T07:40:13Z","updated_at":"2018-06-21T07:40:13Z","author_association":"NONE","body":"+1\r\nGetting this issue when calling appiumDriver.getSessionDetails();\r\norg.openqa.selenium.UnsupportedCommandException: Build info: version: '3.9.0', revision: '698b3178f0', time: '2018-02-05T14:26:55.441Z'\r\nSystem info: host: 'Syams-MacBook-Pro.local', ip: '192.168.1.67', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.4', java.version: '1.8.0_131'\r\nDriver info: io.appium.java_client.android.AndroidDriver\r\nSession ID: ab4eb5e3-17e6-4189-bfe4-c93863cf2034\r\n\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:423)\r\n\tat org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)\r\n\tat org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)\r\n\tat org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:635)\r\n"}}
{"actor":{"display_login":"syamsasi99"}}