# SessionNotCreatedException: unable to create a new remote session

**URL:** <https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [October 2, 2019, 9:19am UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054 "2019-10-02T09:19:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![fap](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/fap/32/23869_2.png) [@fap](https://forum.katalon.com/u/fap)\
**Post date:** [October 2, 2019, 9:19am UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054/1 "2019-10-02T09:19:47Z")

</div>

hi all, i have this problem, but i don’t know

appium 1.12.1  
katalon 6.3.3  
xcode 11.0

i launched an ios simulator on katalon studio, but connection not work

java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Original error: unexpected end of stream on Connection{ , proxy=DIRECT hostAddress=/127.0.0.1:65035 cipherSuite=none protocol=http/1.1}  
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’  
System info: host: ‘name.homenet.telecomitalia.it’, ip: ’ ', os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.14.6’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: IOSDriver  
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49)  
at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:474)  
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)  
Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Original error: unexpected end of stream on Connection{ , proxy=DIRECT hostAddress=/127.0.0.1:65035 cipherSuite=none protocol=http/1.1}  
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’  
System info: host: ‘nam.homenet.telecomitalia.it’, ip: ‘fe80:0:0:0:1851:6f56:87c6:7a67%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.14.6’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: IOSDriver  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)  
at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.ios.IOSDriver.execute(IOSDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.ios.IOSDriver.(IOSDriver.java:85)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:495)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:460)  
at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startMobileApp(MobileInspectorController.java:191)  
at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:479)  
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36)  
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48)  
… 2 more  
Caused by: java.lang.reflect.InvocationTargetException  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)  
… 20 more  
Caused by: java.io.IOException: unexpected end of stream on Connection{127.0.0.1:65035, proxy=DIRECT hostAddress=/127.0.0.1:65035 cipherSuite=none protocol=http/1.1}  
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:208)  
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at org.openqa.selenium.remote.internal.OkHttpClient$Factory$1.lambda$createClient$1(OkHttpClient.java:152)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)  
at okhttp3.RealCall.execute(RealCall.java:77)  
at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:103)  
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:105)  
… 21 more  
Caused by: java.io.EOFException: \n not found: limit=0 content=…  
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:237)  
at okhttp3.internal.http1.Http1Codec.readHeaderLine(Http1Codec.java:215)  
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)  
… 41 more

---

<div class="post-metadata">

**Author:** ![fap](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/fap/32/23869_2.png) [@fap](https://forum.katalon.com/u/fap)\
**Post date:** [October 2, 2019, 9:41am UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054/2 "2019-10-02T09:41:53Z")

</div>

java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:64863

Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:64863  
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

but the xcodebuild is ok

@duyluong

---

<div class="post-metadata">

**Author:** ![fap](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/fap/32/23869_2.png) [@fap](https://forum.katalon.com/u/fap)\
**Post date:** [October 2, 2019, 11:50am UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054/3 "2019-10-02T11:50:15Z")

</div>

bah. useless.

---

<div class="post-metadata">

**Author:** ![sathya.kunda](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/sathya.kunda/32/16103_2.png) [@sathya.kunda](https://forum.katalon.com/u/sathya.kunda)\
**Post date:** [April 27, 2020, 7:57am UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054/4 "2020-04-27T07:57:06Z")

</div>

I am also facing the same issue. any kind of help is apprecitaed

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [July 13, 2020, 8:55pm UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054/5 "2020-07-13T20:55:05Z")

</div>

There are often incompatibilities between Xcode and Appium. I have had success with Xcode 11 and Appium 1.15.1, so if you can try those versions, they may work for you, too.

Hope this helps,

Chris

---

<div class="post-metadata">

**Author:** ![gandhirk](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gandhirk/32/16103_2.png) [@gandhirk](https://forum.katalon.com/u/gandhirk)\
**Post date:** [August 13, 2020, 11:30am UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054/6 "2020-08-13T11:30:02Z")

</div>

Hi @Chris_Trevarthen,

I read lots of posts on internet from you, and installed the Appium Version 1.15.1 with Xcode 11.1 to work with Katalon and IOS simulators.

I am not able to run any tests on the simulators. I’m also using .app file for the simulators. The .app file is installed successfully, but cannot be opened. The screen flashes and close down. This happens lots of time during the execution of the Katalon test.

Actually, I’m totally new to the Automation world, so any help is appreciated. I am attaching the logs for the reference,

2020-08-13 13:49:25.223 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------  
2020-08-13 13:49:25.227 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/LoginPage/Login  
e[35m[Appium]e[39m Welcome to Appium v1.15.1  
e[35m[Appium]e[39m Non-default server args:  
e[35m[Appium]e[39m port: 55188  
e[35m[Appium]e[39m loglevel: info  
e[35m[Appium]e[39m chromeDriverPort: 55189  
e[35m[Appium]e[39m tmpDir: /var/folders/4c/9fmg9brn1\_7cypz74vksmx9h0000gn/T//Katalon/Appium/Temp1597301367153  
e[35m[Appium]e[39m webkitDebugProxyPort: 55186  
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:55188  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m  
e[35m[HTTP]e[39m e[90m{“desiredCapabilities”:{“app”:"/Users/ngocnv9.dsl/Downloads/Parcel Pending.app",“noReset”:true,“deviceId”:"",“deviceName”:“iPhone 11 Pro”,“fullReset”:false,“platform”:“IOS”,“wdaLocalPort”:55185,“newCommandTimeout”:1800,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“platformVersion”:“13.1”,“automationName”:“XCUITest”,“waitForAppScript”:“true;”,“platformName”:“iOS”},“capabilities”:{“firstMatch”:[{“appium:app”:"/Users/ngocnv9.dsl/Downloads/test.app",“appium:automationName”:“XCUITest”,“deviceId”:"",“appium:deviceName”:“iPhone 11 Pro”,“appium:fullReset”:false,“appium:newCommandTimeout”:1800,“appium:noReset”:true,“platform”:“IOS”,“platformName”:“ios”,“appium:platformVersion”:“13.1”,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“appium:waitForAppScript”:“true;”,“appium:wdaLocalPort”:55185}]}}e[39m  
e[35m[BaseDriver]e[39m The capabilities [“deviceId”,“platform”,“realDeviceLogger”] are not standard capabilities and should have an extension prefix  
e[35m[Appium]e[39m Appium v1.15.1 creating new XCUITestDriver (v2.133.1) session  
e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by Appium:  
e[35m[BaseDriver]e[39m deviceId  
e[35m[BaseDriver]e[39m platform  
e[35m[BaseDriver]e[39m Session created with session id: c0fde97c-a035-42b4-b138-93366ecd6823  
e[35m[XCUITest]e[39m iOS SDK Version set to ‘13.1’  
e[35m[iOSSim]e[39m Constructing iOS simulator for Xcode version 11.1 with udid ‘D5B60764-713B-4A1C-AB09-4AABEA43A2B0’  
e[35m[XCUITest]e[39m Determining device to run tests on: udid: ‘D5B60764-713B-4A1C-AB09-4AABEA43A2B0’, real device: false  
e[35m[BaseDriver]e[39m Using local app ‘/Users/ngocnv9.dsl/Downloads/test.app’  
e[35m[XCUITest]e[39m Continuing without capturing device logs: iOS Simulator with udid D5B60764-713B-4A1C-AB09-4AABEA43A2B0 is not running  
e[35m[XCUITest]e[39m Setting up simulator  
e[35m[iOSSim]e[39m Booting Simulator with UDID D5B60764-713B-4A1C-AB09-4AABEA43A2B0…  
e[35m[iOSSim]e[39m Starting Simulator UI with command: open -Fn /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID D5B60764-713B-4A1C-AB09-4AABEA43A2B0 -ConnectHardwareKeyboard 0  
e[35m[iOSSim]e[39m Simulator with UDID D5B60764-713B-4A1C-AB09-4AABEA43A2B0 booted in 14 seconds  
e[35m[XCUITest]e[39m idb will not be used for Simulator interaction. Original error: ‘idb’ has not been found in PATH. Is it installed? Read [https://www.fbidb.io](https://www.fbidb.io) for more details  
e[35m[XCUITest]e[39m Using WDA path: ‘/usr/local/lib/node\_modules/appium/node\_modules/appium-webdriveragent’  
e[35m[XCUITest]e[39m Using WDA agent: ‘/usr/local/lib/node\_modules/appium/node\_modules/appium-webdriveragent/WebDriverAgent.xcodeproj’  
e[35m[DevCon Factory]e[39m Requesting connection for device D5B60764-713B-4A1C-AB09-4AABEA43A2B0 on local port 55185, device port 55185  
e[35m[DevCon Factory]e[39m Successfully requested the connection for D5B60764-713B-4A1C-AB09-4AABEA43A2B0:55185  
e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:55185}  
e[35m[XCUITest]e[39m Launching WebDriverAgent on the device  
e[35m[WebDriverAgent]e[39m Fetching dependencies  
e[35m[WebDriverAgent]e[39m Dependencies up-to-date  
e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:55185}  
e[35m[WD Proxy]e[39m Got an unexpected response with status 500: {“value”:{“error”:“session not created”,“message”:“Failed to launch com.parcelpendingmobile.app application”,“traceback”:""},“sessionId”:“75820D93-C7FD-4C8D-ACC5-25FACE89BB8D”}  
e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {“code”:“ECONNRESET”}  
e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:55185}  
e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:55185}  
e[35m[XCUITest]e[39m Quitting and uninstalling WebDriverAgent  
e[35m[XCUITest]e[39m Shutting down sub-processes  
e[35m[XCUITest]e[39m Shutting down xcodebuild process (pid 34893)  
e[35m[XCUITest]e[39m Launching WebDriverAgent on the device  
e[35m[WebDriverAgent]e[39m Fetching dependencies  
e[35m[WebDriverAgent]e[39m Dependencies up-to-date  
e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:55185}  
e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:55185}  
e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:55185}  
2020-08-13 13:59:30.387 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceId = null  
2020-08-13 13:59:30.391 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceName = iPhone 11 Pro  
2020-08-13 13:59:30.393 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceModel = Not available for Simulator  
2020-08-13 13:59:30.394 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceManufacturer = Apple  
2020-08-13 13:59:30.395 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceOS = iOS  
2020-08-13 13:59:30.396 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceOSVersion = 13.1  
2020-08-13 13:59:30.450 ERROR c.k.k.core.keyword.internal.KeywordMain - ❌ Unable to start app at: ‘/Users/ngocnv9.dsl/Downloads/test.app’ (Root cause: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Original error: unexpected end of stream on Connection{127.0.0.1:55188, proxy=DIRECT hostAddress=/127.0.0.1:55188 cipherSuite=none protocol=http/1.1}  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘CPT00056433D.local’, ip: ‘fe80:0:0:0:18c1:d4a4:2137:a408%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.15.6’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: IOSDriver  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)  
at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.ios.IOSDriver.execute(IOSDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.ios.IOSDriver.(IOSDriver.java:85)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:496)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:480)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:527)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:441)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.doCall(StartApplicationKeyword.groovy:49)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.call(StartApplicationKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:75)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at Login.run(Login:14)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:339)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:330)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:309)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:301)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:235)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1597301351609.run(TempTestCase1597301351609.groovy:25)  
Caused by: java.lang.reflect.InvocationTargetException  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)  
at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.ios.IOSDriver.execute(IOSDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.ios.IOSDriver.(IOSDriver.java:85)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:496)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:480)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:527)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:441)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.doCall(StartApplicationKeyword.groovy:49)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.call(StartApplicationKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:75)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at Script1595502012265.run(Script1595502012265.groovy:14)  
… 11 more  
Caused by: java.io.IOException: unexpected end of stream on Connection{127.0.0.1:55188, proxy=DIRECT hostAddress=/127.0.0.1:55188 cipherSuite=none protocol=http/1.1}  
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:208)  
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at org.openqa.selenium.remote.internal.OkHttpClient$Factory$1.lambda$createClient$1(OkHttpClient.java:152)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)  
at okhttp3.RealCall.execute(RealCall.java:77)  
at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:103)  
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:105)  
… 36 more  
Caused by: java.io.EOFException: \n not found: limit=0 content=…  
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:237)  
at okhttp3.internal.http1.Http1Codec.readHeaderLine(Http1Codec.java:215)  
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)  
… 56 more  
)  
Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Original error: unexpected end of stream on Connection{127.0.0.1:55188, proxy=DIRECT hostAddress=/127.0.0.1:55188 cipherSuite=none protocol=http/1.1}  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘CPT00056433D.local’, ip: ‘fe80:0:0:0:18c1:d4a4:2137:a408%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.15.6’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: IOSDriver  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)  
at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.ios.IOSDriver.execute(IOSDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.ios.IOSDriver.(IOSDriver.java:85)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:496)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:480)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:527)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:441)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.doCall(StartApplicationKeyword.groovy:49)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.call(StartApplicationKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
… 17 more  
Caused by: java.lang.reflect.InvocationTargetException  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)  
at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.ios.IOSDriver.execute(IOSDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.ios.IOSDriver.(IOSDriver.java:85)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:496)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:480)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:527)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:441)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.doCall(StartApplicationKeyword.groovy:49)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.call(StartApplicationKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:75)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at Script1595502012265.run(Script1595502012265.groovy:14)  
… 11 more  
Caused by: java.io.IOException: unexpected end of stream on Connection{127.0.0.1:55188, proxy=DIRECT hostAddress=/127.0.0.1:55188 cipherSuite=none protocol=http/1.1}  
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:208)  
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at org.openqa.selenium.remote.internal.OkHttpClient$Factory$1.lambda$createClient$1(OkHttpClient.java:152)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)  
at okhttp3.RealCall.execute(RealCall.java:77)  
at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:103)  
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:105)  
… 36 more  
Caused by: java.io.EOFException: \n not found: limit=0 content=…  
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:237)  
at okhttp3.internal.http1.Http1Codec.readHeaderLine(Http1Codec.java:215)  
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)  
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at org.openqa.selenium.remote.internal.OkHttpClient$Factory$1.lambda$createClient$1(OkHttpClient.java:152)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)  
at okhttp3.RealCall.execute(RealCall.java:77)  
at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:103)  
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:105)  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)  
at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.ios.IOSDriver.execute(IOSDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.ios.IOSDriver.(IOSDriver.java:85)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:496)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:480)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:527)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:441)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.doCall(StartApplicationKeyword.groovy:49)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$\_startApplication\_closure1.call(StartApplicationKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)  
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:75)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at Login.run(Login:14)  
… 11 more

2020-08-13 13:59:30.602 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/LoginPage/Loginno,

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [August 13, 2020, 12:49pm UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054/7 "2020-08-13T12:49:32Z")

</div>

@gandhirk

> Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Original error: unexpected end of stream on Connection{127.0.0.1:55188, proxy=DIRECT hostAddress=/127.0.0.1:55188 cipherSuite=none protocol=http/1.1}

Please try the solution in this post:

> [@Unable to create a new remote session, please check the server log for more](http://forum.katalon.com/t/unable-to-create-a-new-remote-session-please-check-the-server-log-for-more/46001/2):
>
> @amfs.andika If you have manual proxy in Katalon Preferences/Proxy, please add 127.0.0.1 to the Excludes field. Thanks

---

<div class="post-metadata">

**Author:** ![gandhirk](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gandhirk/32/16103_2.png) [@gandhirk](https://forum.katalon.com/u/gandhirk)\
**Post date:** [October 21, 2020, 3:46am UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054/8 "2020-10-21T03:46:55Z")

</div>

Thanks duyluong, it was the firewall permission issue from my network. It’s working now.

---

<div class="post-metadata">

**Author:** ![jean\_gan](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@jean\_gan](https://forum.katalon.com/u/jean_gan)\
**Post date:** [November 26, 2020, 6:43am UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054/9 "2020-11-26T06:43:07Z")

</div>

what is the solution if i cannot modify/off firewall?  
i hit the same error, added exclues localhost and 127.0.0.1 but same error.

i am running winapp driver at 127.0.0.1:4723

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [November 26, 2020, 2:57pm UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054/10 "2020-11-26T14:57:48Z")

</div>

Hi @jean_gan,

Please share your Proxy settings in Katalon Studio here and some screenshots of the error.

---

<div class="post-metadata">

**Author:** ![jean\_gan](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@jean\_gan](https://forum.katalon.com/u/jean_gan)\
**Post date:** [November 27, 2020, 2:30am UTC](https://forum.katalon.com/t/sessionnotcreatedexception-unable-to-create-a-new-remote-session/34054/11 "2020-11-27T02:30:21Z")

</div>

It is system, manual proxy  
At excludes field. I have localhost, 127.0.0.1  
Thats all I have set.
