I have defined a class request, and there will be a bug when the number of requests is too many.

source:

line77: ResponseObject resp = WS.sendRequest(findTestObject(‘xxxxxxxxxx’))

	KeywordUtil.logInfo(resp.getResponseText())

	JsonSlurper slurper = new JsonSlurper()

	Map parsedJson = slurper.parseText(resp.getResponseText())

	List cookieMapList = parsedJson.get('data')

log:
2019-04-28 01:46:40.773 ERROR c.k.k.core.util.BrowserMobProxyManager - :x: Cannot start BrowserMob proxy: java.lang.RuntimeException - io.netty.channel.ChannelException: Failed to open a server socket.
2019-04-28 01:46:40.774 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Unable to send request (Root cause: java.net.SocketException: Too many open files
at com.kms.katalon.core.webservice.common.RestfulClient.sendRequest(RestfulClient.java:80)
at com.kms.katalon.core.webservice.common.RestfulClient.send(RestfulClient.java:49)
at com.kms.katalon.core.webservice.keyword.builtin.SendRequestKeyword$_sendRequest_closure1.doCall(SendRequestKeyword.groovy:53)
at com.kms.katalon.core.webservice.keyword.builtin.SendRequestKeyword$_sendRequest_closure1.call(SendRequestKeyword.groovy)
at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:66)
at com.kms.katalon.core.webservice.keyword.builtin.SendRequestKeyword.sendRequest(SendRequestKeyword.groovy:48)
at com.kms.katalon.core.webservice.keyword.builtin.SendRequestKeyword.execute(SendRequestKeyword.groovy:43)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords.sendRequest(WSBuiltInKeywords.groovy:40)
at com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords$sendRequest.call(Unknown Source)
at com.yuanian.Login.systemLogin(Login.groovy:77)
at com.yuanian.Login.invokeMethod(Login.groovy)
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:49)
at IIT-346.run(IIT-346:19)
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:331)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:322)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:301)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:293)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:227)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1556384415399.run(TempTestSuite1556384415399.groovy:35)
)

Hi @1224991363,

Please refer to this anwser: Cannot start BrowserMob proxy

I closed this because it is inactive