I cant't connect appium-server desktop and appium inspector with my smartphone while i can see my device is well connected in my terminal on windows

I just used Appium-desktop to see logs during the connection with my smartphone and Appium-inspector to inspect the DOM too, I'm new in this exercise and I search a lot without any result for the moment. I can see my smartphone is well connected and the server seems to work.
enter image description here

I created a Android folder in C:\Users<USERNAME>\AppData\Local, in it I have installed cmdline-tools, platform-tools and run the command :
sdkmanager "build-tools;28.0.3" to install others packages in the Android folder
My environment:

OS : Windows 10  
Appium version : 1.22.0  
Node : v14.17.6  
Npm : 6.14.15  
Sdkmanager : 4.0.1  

I show you in pictures the state of Appium-desktop at the starting and during the processus
enter image description here

My host is 0.0.0.0, port: 4723
enter image description here

Disared capabilities: platformName: Android  
                      deviceName: HUAWEI VNS-L31  
                      udid: FUH7N16607025752  
                      plateformVersion: 7.0  

And unfortunately it doesn't work when I start session
enter image description here
enter image description here

I have this error message:

"Error
Failed to create session. The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource"

enter image description here

Does anyone have an idea please?

Upvotes: 15

Views: 65116

Answers (5)

Anil Jain
Anil Jain

Reputation: 69

Appium Server: allow cors enter image description here

Appium inspector: desired capabilities as per your app enter image description here

Upvotes: 0

Ranjeet Mane
Ranjeet Mane

Reputation: 1

I had the same problem so I have set the remote path in appium inspector it got resolved

To set the remote path follow below steps

  • Open Appium inspector
  • Under appium server, set the Remote Port : 4723 and Remote path : /wd/hub

once it's done, re-start the appium inspector, this will resolve your issue.

Upvotes: 0

Juan Pablo Rodriguez
Juan Pablo Rodriguez

Reputation: 441

I had the same problem. Try the following:

  1. Go to Appium Server GUI -> Advanced
    Server address: localhost
    Port: 4723
    Allow CORP: yes

  2. Go to Appium Inspector
    Remote host: localhost
    Port: 4723
    Path: /wd/hub

  3. Allow Unauthorized Certificates

  4. Select your capabilities

  5. Start server

Upvotes: 44

krishna moorthy
krishna moorthy

Reputation: 369

Adding /wd/hub worked charm i also used appium 1.22.0

Adding /wd/hub worked charm i also used appium 1.22.0

Upvotes: 4

Sajid Saiyed
Sajid Saiyed

Reputation: 199

Just write in remote path:

/wd/hub

Upvotes: 19

Related Questions