Appium-desktop: Getting Error Could not connect to server; are you sure it's running? Appium v1.13.0

Created on 23 Sep 2019  路  6Comments  路  Source: appium/appium-desktop

The problem

1.Launched Appium v1.13.0 from start->programs

  1. Keeping default values (host:0.0.0.0 port:4723) clicked on Start server button
  2. On console got message as
    "[Appium] Welcome to Appium v1.13.0
    [Appium] Appium REST http interface listener started on 0.0.0.0:4723" [even tried with host 127.0.0.1]
    and in green font 'The server is running' in center top

Issue is I am trying to connect to inspector/new session with below mentioned Desired Capabilities

{
"deviceName": "A3-A40",
"platformVersion": "6.0",
"platformName": "Android",
"app": "in.amazon.mShop.android.shopping.apk",
"appPackage": "in.amazon.mShop.android.shopping",
"appActivity": "com.amazon.mShop.home.HomeActivity"
}

On start session button click getting error

Could not connect to server; are you sure it's running?

Environment

  • Appium version v1.13.0:
  • Desktop OS/version used to run Appium:Windows 10 pro
  • Node.js version (unless using Appium.app|exe):node-v10.16.3-x86
  • Npm or Yarn package manager:
  • Mobile platform/version under test: Acer A3-40
  • Real device or emulator/simulator:
  • Appium CLI or Appium.app|exe:

Details

If necessary, describe the problem you have been experiencing in more detail.

Link to Appium logs

[info] [Appium] Welcome to Appium v1.13.0
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723

Code To Reproduce Issue [ Good To Have ]

{
"deviceName": "A3-A40",
"platformVersion": "6.0",
"platformName": "Android",
"app": "in.amazon.mShop.android.shopping.apk",
"appPackage": "in.amazon.mShop.android.shopping",
"appActivity": "com.amazon.mShop.home.HomeActivity"
}

Most helpful comment

@Pooja0907

On Appium server UI select Automatic server as at times Costume server is selected and hence the error

All 6 comments

Can you open 0.0.0.0:4723 on the browser?
An error message like The URL '/' did not map to a valid resource will appear if your local env can resolve the local network. If no, you should resolve the network connection on your local env, I assume.

Basically i am unable to invoke 'Inspector Session' on UI
AppiumInspectorError
with Desired Capabilities as
{
"deviceName": "A3-A40",
"platformVersion": "6.0",
"platformName": "Android",
"app": "in.amazon.mShop.android.shopping.apk",
"appPackage": "in.amazon.mShop.android.shopping",
"appActivity": "com.amazon.mShop.home.HomeActivity"
}

Session started. APK path was not getting found on device.
Thanks for help.

@aaratitambe How you enabled the APK path ?

Author
aaratitambe

@Pooja0907

On Appium server UI select Automatic server as at times Costume server is selected and hence the error

aaratitambe

thank you solved my issue!

Was this page helpful?
0 / 5 - 0 ratings