Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work locally but not on BrowserStack - Failed sending HTTP request. #68

Open
adamauto opened this issue Jun 9, 2022 · 0 comments
Open

Comments

@adamauto
Copy link

adamauto commented Jun 9, 2022

I got this message on the first instruction ChromeDevToolsService cdts = CdpUtils.getService() :

com.github.kklisura.cdt.services.exceptions.ChromeServiceException: Failed sending HTTP request.
at com.github.kklisura.cdt.services.impl.ChromeServiceImpl.request(ChromeServiceImpl.java:292)
at com.github.kklisura.cdt.services.impl.ChromeServiceImpl.getTabs(ChromeServiceImpl.java:127)
at com.github.kklisura.cdt.services.ChromeService$getTabs.call(Unknown Source)
at com.katalon.cdp.CdpUtils.getService(CdpUtils.groovy:42)
at com.katalon.cdp.CdpUtils$getService.call(Unknown Source)
at mock.run(mock:9)
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:445)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:436)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:415)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:407)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:284)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:142)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:133)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1654765836164.run(TempTestCase1654765836164.groovy:25)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at com.github.kklisura.cdt.services.impl.ChromeServiceImpl.request(ChromeServiceImpl.java:273)
at com.github.kklisura.cdt.services.impl.ChromeServiceImpl.getTabs(ChromeServiceImpl.java:127)
at com.github.kklisura.cdt.services.ChromeService$getTabs.call(Unknown Source)
at com.katalon.cdp.CdpUtils.getService(CdpUtils.groovy:42)
at com.katalon.cdp.CdpUtils$getService.call(Unknown Source)
at Script1654699810967.run(Script1654699810967.groovy:9)

I mocked our API using this code : https://forum.katalon.com/t/intercepting-request-with-chrome-devtools-protocol/36081

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant