Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

オープン
#1,941 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
android, java, kotlin
領域
mobile, testing-qa

調査の方向性

LoginDomainTest.kt の 38 行目にある再現手順と、記載されている Appium client、server、Node、Android Studio、およびデバイスのバージョンから始めます。設定されている remote URL を、接続拒否の stack trace およびローカルの Appium server のセットアップと併せて調査します。再現可能なクライアントまたはセットアップの不具合を特定し、検証済みの原因を文書化できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Description

Hi everyone,
i'm getting 'SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Host info: host: 'localhost', ip: '127.0.0.1' cuando quiero conectarme al servidor de appium local desde android studio(kotlin).

Environment

Below is my Environment:
Mac OS: Ventura 13.4
Android Studio: 2022.1.1
Appium.io : 8.5.1
Appium server: 2.0.0-beta.71
node: v20.3.0
device: Android Samsung A235M

Code To Reproduce Issue

`@get:Rule
val activityScenarioRule = ActivityScenarioRule(LaunchActivity::class.java)

private lateinit var driver: AndroidDriver

@Before
@Throws(MalformedURLException::class)
fun setUp() {
    val desiredCapabilities = DesiredCapabilities()
    desiredCapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "samsung SM-A235M")
    desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "13")
    desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "android")
    desiredCapabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "appium")
    //desiredCapabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "Chrome")
    val remoteUrl = URL("http://127.0.0.1:4723")
    driver = AndroidDriver(remoteUrl, desiredCapabilities)
}

@After
fun tearDown() {
    driver?.quit()
}

@Test
fun testButtonNavigationToBrowser() {
    onView(withId(R.id.single_single_on_btn)).perform(click())

    Thread.sleep(7000)
    
    val inputField = driver?.let {
        it.findElement(By.cssSelector("input[name='domain']"))
    }
    
    inputField?.let { it.sendKeys("fulcrum") }
}`

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.
Host info: host: 'localhost', ip: '127.0.0.1'
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:561)
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:274)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:157)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:89)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:101)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:113)
at com.spatialnetworks.fulcrum.app.LoginDomainTest.setUp(LoginDomainTest.kt:38)
... 33 trimmed
Caused by: org.openqa.selenium.WebDriverException: Connection refused
Build info: version: '4.9.1', revision: 'eb2032df7f'
System info: os.name: 'Linux', os.arch: 'aarch64', os.version: '4.19.157-perf-25521380-abA235MUBU1BVL1', java.version: '0'
Driver info: driver.version: AndroidDriver
at io.appium.java_client.remote.AppiumCommandExecutor.lambda$execute$4(AppiumCommandExecutor.java:262)
at io.appium.java_client.remote.AppiumCommandExecutor$$ExternalSyntheticLambda3.get(Unknown Source:2)
at java.util.Optional.orElseGet(Optional.java:365)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:261)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
... 40 more
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:762)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:1012)'

主要言語
Java
スター
1.3k
フォーク
755
平均マージ
5日 14時間
マージ済み PR(30日)
8

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appium/java-client のほかの issue

appium/java-client の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。