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

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Unknown device or simulator UDID: xxxx

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
ios, java
領域
mobile, testing

調査の方向性

レポートに示されている IOSDriver の構築と iOS デバイスの capabilities から始め、setDeviceName、setPlatformVersion、setUdid を含めて確認します。Issue にはリポジトリのファイルやテストが記載されていないため、まず報告された UDID の失敗が Java クライアントに属するものかどうかを判断し、その後、実装前に再現可能なテストまたは設定変更を定義します。

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

説明

Hi All,

I am getting "org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Unknown device or simulator UDID:xxxx" error when I execute my scripts in older device models like iPhone 6S, iPhone 8, iPad mini 2019/20 models which has 40 characters of UDID but the same is working fine in newer devices models which has 24 Characters of UDID. I am not sure if this is any compatibility issue or bug or its the expected behaviour. Also I am new to iOS Real Device Automation.

Please help me out to resolve this issue or please update me if anybody facing this issue and found any work around.

Below is my Environment:
Mac OS: Ventura 13.3.1(a)
Xcode: 14.3.1

New iPad (Where everything is working fine) : 16.3.1

===Getting the above Error with the below devices=====
iPhone 6S : 15.7.5
iPhone 8: 15.2
iPad mini 2019/2020 model: 12.5.7

Appium.io : 8.5.0
Selenium.io: 4.9.1

Below is my Capabilities:

switch (strExecutionMode){
case "Device":

            String strDeviceName = properties.getProperty("DeviceName");
            
           options.setDeviceName(strDeviceName);
            if(strInstallApp.equalsIgnoreCase("true")){
                options.setApp("xxx.app");
            }


            options.setPlatformName("iOS");
            options.setBundleId("xxxxx");

            switch (strDeviceName){
                case "iPad mini 2019/2020 model:":
                   
                    options.setPlatformVersion("12.5.7");
                    options.setUdid("xxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
                    break;
                case "New iPad":
                    options.setPlatformVersion("16.3.1");
                    options.setUdid("xxxxxxxx-xxxxxxxxxxxxxxxx");
                    break;
                case "iPhone 8":
                    options.setPlatformVersion("15.2");
                    options.setUdid("xxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
                    break;
                case "iPhone 6S":
                    options.setPlatformVersion("15.7.5");
                    options.setUdid("xxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
                    break;
                default:
                    Assert.fail("If Execution Mode is Device then Device Name should be mandatory to configure");
                    break;
            }
            break;
        case "Simulator":
            options.setDeviceName("iPad (10th generation)");
            options.setApp("xxxxx.app");
            options.setPlatformVersion("16.2");
            options.setPlatformName("iOS");
            //options.usePrebuiltWda();
            break;
    }
    options.setAutoWebview(true);
    options.includeSafariInWebviews();
    options.getWebviewConnectTimeout();
    options.setWdaLaunchTimeout(Duration.ofSeconds(Long.parseLong(properties.getProperty("ImplicitWaitTime"))));
    driver = new IOSDriver(new URL("http://127.0.0.1:4723"),options);
    driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(Long.parseLong(properties.getProperty("ImplicitWaitTime"))));
}
主要言語
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 を短くまとめたダイジェスト。