1
votes

I can't launch ui inspector from Appium when I select Start session I get this error: An unknown server-side error occurred while processing the command. Original error: You must include a platformName capability

Appium version (1.13) Last Appium version that did not exhibit the issue (if applicable): Desktop OS/version used to run Appium: Mobile platform/version under test: Galaxy s7 Real device : Appium.app|exe:

I get error when I select Start Session with ui inspector on Appium.

Desired Capabilities Inspector

"platformName ": "Android",
   "platformVersion": "9.0",
   "appPackage": "com.samsung.android.phonemessage",
   "appActivity": "com.android.phonemessage.ui.dialermessage",
   "deviceName": "Galaxy s7"

Appium Logs

    base-driver/lib/basedriver/driver.js:319:19)
    [MJSONWP] at AppiumDriver.executeCommand (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/lib/appium.js:471:26)
    [MJSONWP] at executeCommand (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:352:34)
    [MJSONWP] at asyncHandler (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:489:15)
    [MJSONWP] at Layer.handle [as handle_request] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
    [MJSONWP] at next (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/route.js:137:13)
    [MJSONWP] at Route.dispatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/route.js:112:3)
    [MJSONWP] at Layer.handle [as handle_request] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
    [MJSONWP] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:281:22
    [MJSONWP] at Function.process_params (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:335:12)
    [MJSONWP] at next (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
    [MJSONWP] at logger (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/morgan/index.js:144:5)
    [MJSONWP] at Layer.handle [as handle_request] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
    [MJSONWP] at trim_prefix (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:317:13)
    [MJSONWP] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:284:7
    [MJSONWP] at Function.process_params (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:335:12)
    [MJSONWP] at next (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
    [MJSONWP] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/body-parser/lib/read.js:130:5
    [MJSONWP] at invokeCallback (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/raw-body/index.js:224:16)
    [MJSONWP] at done (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/raw-body/index.js:213:7)
    [MJSONWP] at IncomingMessage.onEnd 





 (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/n     
    ode_modules/raw-body/index.js:273:7)
    [MJSONWP] at phonemessage.emit (events.js:182:13)
    [MJSONWP] at endReadableNT (_stream_readable.js:1090:12)
    [MJSONWP] at process._tickCallback 
    (internal/process/next_tick.js:63:19)
    [HTTP] <-- POST /wd/hub/session 500 5 ms - 179
    [HTTP]
    [HTTP] --> DELETE /wd/hub/session
    [HTTP] {}
    [HTTP] No route found. Setting content type to 'text/plain'
    [HTTP] <-- DELETE /wd/hub/session 404 1 ms - 57
    [HTTP]
1
can you add full appium server log?Suban Dhyako

1 Answers

2
votes

It's because you have a space at the end of "platformName ". Remove it and it will work.