While trying to set the location on the android phone, after upgrading to 1.9.1 form 1.7.2 I started seeing this error:
2018-10-18 01:34:19:580 - [HTTP] --> POST /wd/hub/session/49162b76-b896-46d8-bc32-da8bd4dbda0a/location
2018-10-18 01:34:19:580 - [HTTP] {"location":{"altitude":10,"latitude":42.2980217,"class":"org.openqa.selenium.html5.Location","longitude":-71.219236}}
2018-10-18 01:34:19:581 - [debug] [W3C] Calling AppiumDriver.setGeoLocation() with args: [{"altitude":10,"latitude":42.2980217,"class":"org.openqa.selenium.html5.Location","longitude":-71.219236},"49162b76-b896-46d8-bc32-da8bd4dbda0a"]
2018-10-18 01:34:19:583 - [debug] [ADB] Running '/Users/jenkins/build_tools/android-sdk-macosx-r24.4.1/platform-tools/adb -P 5037 -s 324f4e3857563398 shell am startservice -e longitude -71.21923 -e latitude 42.29803 io.appium.settings/.Locat
ionService'
2018-10-18 01:34:19:738 - [debug] [ADB] Running '/Users/jenkins/build_tools/android-sdk-macosx-r24.4.1/platform-tools/adb -P 5037 -s 324f4e3857563398 shell am broadcast -n io.appium.settings/.receivers.LocationInfoReceiver -a io.appium.setti
ngs.location'
2018-10-18 01:34:20:610 - [HTTP] --> GET /wd/hub/status
2018-10-18 01:34:20:611 - [HTTP] {}
2018-10-18 01:34:20:611 - [debug] [GENERIC] Calling AppiumDriver.getStatus() with args: []
2018-10-18 01:34:20:611 - [debug] [GENERIC] Responding to client with driver.getStatus() result: {"build":{"version":"1.9.1","git-sha":"f9ee7d068e14f10729f88ebd85db802c2e8ac21a","built":"2018-09-20T18:14:29Z"}}
2018-10-18 01:34:20:612 - [HTTP] <-- GET /wd/hub/status 200 2 ms - 151
2018-10-18 01:34:20:613 - [HTTP]
2018-10-18 01:34:21:770 - [debug] [W3C] Encountered internal error running command: Error: Cannot parse the actual location values from the command output: Broadcasting: Intent { act=io.appium.settings.location flg=0x400000 cmp=io.appium.settings/.receivers.LocationInfoReceiver }
2018-10-18 01:34:21:771 - [debug] [W3C] Broadcast completed: result=0
2018-10-18 01:34:21:771 - [debug] [W3C] at ADB.callee$0$0$ (/Users/jenkins/build_tools/scripts/node_modules/appium/node_modules/appium-adb/lib/tools/adb-commands.js:920:11)
2018-10-18 01:34:21:771 - [debug] [W3C] at tryCatch (/Users/jenkins/build_tools/scripts/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
2018-10-18 01:34:21:771 - [debug] [W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/jenkins/build_tools/scripts/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
2018-10-18 01:34:21:771 - [debug] [W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/jenkins/build_tools/scripts/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
2018-10-18 01:34:21:771 - [debug] [W3C] at GeneratorFunctionPrototype.invoke (/Users/jenkins/build_tools/scripts/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
2018-10-18 01:34:21:771 - [debug] [W3C] at <anonymous>
2018-10-18 01:34:21:777 - [HTTP] <-- POST /wd/hub/session/49162b76-b896-46d8-bc32-da8bd4dbda0a/location 500 2196 ms - 1643
Code to duplicate
Location useLocation = new Location(42.2980217, -71.219236, 10);
appDriver.setLocation(useLocation);
This is using Appium Java Client 6.1.0 on a real device