I am following this Appium tutorial: https://youtu.be/i1tQ1pjEFWw and my Appium failed to start a session. This is the error I'm getting from the inspector:
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
This is the JSON representation I am using:
{
"appium:deviceName": "emulator-5554",
"platformName": "android",
"appium:appPackage": "com.android.calculator2",
"appium:appActivity": ".Calculator",
"appium:noReset": true
}
This is the error shown on Appium:
[HTTP] No route found for /session
[HTTP] <-- POST /session 404 14 ms - 211
My emulator is working fine and it shows on adb devices. I am using a Pixel 2 API 28 emulator from Android Studio.
Screenshot
Important migration information from Appiun-Inspector
Important migration notes
This version of Appium Inspector is designed to work with Appium 2.0 as a default. So if you are migrating from Appium Desktop (which is designed to work with Appium 1.x as a default), you need to be aware of some changes:
The default remote server path has changed from /wd/hub to / to reflect Appium 2.0's default server path. If you're using Appium Inspector with an Appium 1.x server, you'll likely need to update the path information in the New Session form back to /wd/hub.
My problem solved with this :
1-In your device -> Settings -> Apps then search uiautomator , 2 apps will pop up .
2-Uninstall them.
This error occurs when the session crash several times.
Pay attention : first of all check the server address in your code with appium server name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With