{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/4309","labels_url":"https://api.github.com/repos/appium/appium/issues/4309/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/4309/comments","events_url":"https://api.github.com/repos/appium/appium/issues/4309/events","html_url":"https://github.com/appium/appium/issues/4309","id":52762617,"number":4309,"title":"driver.setLocation() method not working with android device/simulator","user":{"login":"hungl","id":5379131,"avatar_url":"https://avatars.githubusercontent.com/u/5379131?v=3","gravatar_id":"","url":"https://api.github.com/users/hungl","html_url":"https://github.com/hungl","followers_url":"https://api.github.com/users/hungl/followers","following_url":"https://api.github.com/users/hungl/following{/other_user}","gists_url":"https://api.github.com/users/hungl/gists{/gist_id}","starred_url":"https://api.github.com/users/hungl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungl/subscriptions","organizations_url":"https://api.github.com/users/hungl/orgs","repos_url":"https://api.github.com/users/hungl/repos","events_url":"https://api.github.com/users/hungl/events{/privacy}","received_events_url":"https://api.github.com/users/hungl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/OnGoing","name":"OnGoing","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"jlipps","id":605053,"avatar_url":"https://avatars.githubusercontent.com/u/605053?v=3","gravatar_id":"","url":"https://api.github.com/users/jlipps","html_url":"https://github.com/jlipps","followers_url":"https://api.github.com/users/jlipps/followers","following_url":"https://api.github.com/users/jlipps/following{/other_user}","gists_url":"https://api.github.com/users/jlipps/gists{/gist_id}","starred_url":"https://api.github.com/users/jlipps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlipps/subscriptions","organizations_url":"https://api.github.com/users/jlipps/orgs","repos_url":"https://api.github.com/users/jlipps/repos","events_url":"https://api.github.com/users/jlipps/events{/privacy}","received_events_url":"https://api.github.com/users/jlipps/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2014-12-23T18:17:46Z","updated_at":"2015-03-06T13:03:48Z","closed_at":null,"body":"Hi,\r\n\r\nI am trying to set geo location for my app every time it runs a test. I use driver.setLocation(). It works perfectly for iOS, but does not work for Android. It does not work on genymotion as well as Android device. The app starts and shut down right away, and the test fails. I'm running tests on Appium 1.3.4\r\nHere are the logs:\r\n\r\nIDE log:\r\n\r\norg.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)\r\nCommand duration or timeout: 7 milliseconds\r\nBuild info: version: '2.43.1', revision: '5163bceef1bc36d43f3dc0b83c88998168a363a0', time: '2014-09-10 09:43:55'\r\nSystem info: host: 'Hungs-MacBook-Pro.local', ip: '192.168.1.14', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.7.0_71'\r\nSession ID: 09069989-3dd7-4182-8b06-73f304b29344\r\nDriver info: io.appium.java_client.android.AndroidDriver\r\nCapabilities [{automationName=Appium, platform=LINUX, app=/Users/hunglac/Documents/tests-mobile-ui/xxxxx-android/xxxxx.apk, javascriptEnabled=true, appActivity=.ui.splash.SplashActivity, browserName=Android, networkConnectionEnabled=true, desired={automationName=Appium, app=/Users/hunglac/Documents/tests-mobile-ui/xxxxxx-android/xxxxxx.apk, fullReset=true, deviceName=Android Emulator, platformName=Android, appActivity=.ui.splash.SplashActivity, appWaitActivity=.ui.login.LoginActivity,.ui.splash.SplashActivity, appPackage=com.xxxxxx.ordering, noReset=true}, locationContextEnabled=false, appPackage=com.xxx.ordering, noReset=true, platformVersion=4.1, databaseEnabled=false, fullReset=true, deviceName=Android Emulator, platformName=Android, webStorageEnabled=false, appWaitActivity=.ui.login.LoginActivity,.ui.splash.SplashActivity, warnings={}, takesScreenshot=true}]\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:526)\r\n\tat org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)\r\n\tat org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)\r\n\tat org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)\r\n\tat io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:180)\r\n\tat io.appium.java_client.AppiumExecutionMethod.execute(AppiumExecutionMethod.java:22)\r\n\tat org.openqa.selenium.remote.html5.RemoteLocationContext.setLocation(RemoteLocationContext.java:49)\r\n\tat io.appium.java_client.AppiumDriver.setLocation(AppiumDriver.java:602)\r\n\tat com.ncr.automation.tools.AutomatedTest.setUp(AutomatedTest.java:76)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)\r\n\tat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)\r\n\tat org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)\r\n\r\nAppium log:\r\n\r\ninfo: [debug] Sending telnet command to device: geo fix -104.984859 39.738436\r\ninfo: [debug] Getting running emulator port\r\nerror: Unhandled error: Error: connect EADDRNOTAVAIL\r\n    at errnoException (net.js:904:11)\r\n    at connect (net.js:766:19)\r\n    at net.js:845:9\r\n    at asyncCallback (dns.js:68:16)\r\n    at Object.onanswer [as oncomplete] (dns.js:121:9) context: [POST /wd/hub/session/016087f6-3038-43ed-b151-9a3e1edcc660/location {\"location\":{\"altitude\":33,\"class\":\"org.openqa.selenium.html5.Location\",\"longitude\":-104.984859,\"latitude\":39.738436,\"hCode\":2079822107}}]\r\ninfo: [debug] Responding to client with error: {\"status\":13,\"value\":{\"message\":\"An unknown server-side error occurred while processing the command.\",\"origValue\":\"Could not set geolocation via telnet to device\"},\"sessionId\":\"016087f6-3038-43ed-b151-9a3e1edcc660\"}\r\ninfo: <-- POST /wd/hub/session/016087f6-3038-43ed-b151-9a3e1edcc660/location 500 1.635 ms - 215 \r\ninfo: --> DELETE /wd/hub/session/016087f6-3038-43ed-b151-9a3e1edcc660 {}\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/77555390","html_url":"https://github.com/appium/appium/issues/4309#issuecomment-77555390","issue_url":"https://api.github.com/repos/appium/appium/issues/4309","id":77555390,"user":{"login":"jlipps","id":605053,"avatar_url":"https://avatars.githubusercontent.com/u/605053?v=3","gravatar_id":"","url":"https://api.github.com/users/jlipps","html_url":"https://github.com/jlipps","followers_url":"https://api.github.com/users/jlipps/followers","following_url":"https://api.github.com/users/jlipps/following{/other_user}","gists_url":"https://api.github.com/users/jlipps/gists{/gist_id}","starred_url":"https://api.github.com/users/jlipps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlipps/subscriptions","organizations_url":"https://api.github.com/users/jlipps/orgs","repos_url":"https://api.github.com/users/jlipps/repos","events_url":"https://api.github.com/users/jlipps/events{/privacy}","received_events_url":"https://api.github.com/users/jlipps/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T13:03:48Z","updated_at":"2015-03-06T13:03:48Z","body":"It's possible it doesn't work; I haven't tried it myself"}}