15

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?

Omar Shawky
  • 1,242
  • 1
  • 12
  • 25

5 Answers5

42

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

Peter Csala
  • 17,736
  • 16
  • 35
  • 75
18

Just write in remote path:

/wd/hub
Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
Sajid Saiyed
  • 189
  • 1
  • 3
  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Dec 27 '21 at 20:58
  • 1
    Adding /wd/hub worked for me. Perfect – krishna moorthy Dec 28 '21 at 07:34
4

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

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

krishna moorthy
  • 359
  • 1
  • 2
  • 14
0

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.

0

Appium Server: allow cors enter image description here

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

Anil Jain
  • 57
  • 3