appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.22k stars 760 forks source link

Session ID is null. The session identified by ... is not known #1716

Open smdelacruz opened 2 years ago

smdelacruz commented 2 years ago

The problem

Cannot connect to appium server as its always getting an error of "Failed to create session. The session identified by b6c00d36-b450-44b7-b9b5-28362434fd1f is not known". Also tried connecting using Appium Inspector but failed.

Environment

Details

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

Link to Appium logs

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '4.3.0', revision: 'a4995e2c09*' System info: host: 'ComputerName', ip: '', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '12.3.1', java.version: '17.0.2' Driver info: io.appium.java_client.AppiumDriver Command: [null, newSession {capabilities=[{appium:deviceName=iPhone X, platformName=IOS, appium:automationName=XCUITest, appium:app=ios.app, appium:platformVersion=15.4}], desiredCapabilities=Capabilities {appium:app: ..., appium:automationName: XCUITest, appium:deviceName: iPhone X, appium:platformVersion: 15.4, platformName: IOS}}] Capabilities {}

KazuCocoa commented 2 years ago

Please share the full appium log (as GIST)

danpgomez commented 12 months ago

Wiping all the data from the emulator solved this issue for me. Open the AVD Manager dialog, right click on the virtual device you want to reset data, then choose Wipe Data.