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

Appium Socket Hangup Error #68

Open
Saint-1987 opened this issue Feb 15, 2025 · 0 comments
Open

Appium Socket Hangup Error #68

Saint-1987 opened this issue Feb 15, 2025 · 0 comments

Comments

@Saint-1987
Copy link

Hello,
I am new to Web OS automation. I am trying to launch the sample Hello World app in the TV using appium. When I do inspect in Appium inspector, I keep getting the error Socket Hangup. What am I missing here?

The app installation is working when I run the command ares-inspect --device lgTV --app com.domain.app --open

Appium logs:
C:\Users\arunk>appium
[Appium] Welcome to Appium v2.15.0
[Appium] The autodetected Appium home path: C:\Users\arunk
[Appium] Attempting to load driver windows...
[Appium] Attempting to load driver uiautomator2...
[Appium] Attempting to load driver webos...
[Appium] Requiring driver at C:\Users\arunk\node_modules\appium-lg-webos-driver\index.js
[Appium] Requiring driver at C:\Users\arunk\node_modules\appium-windows-driver\build\index.js
[Appium] Requiring driver at C:\Users\arunk\node_modules\appium-uiautomator2-driver\build\index.js
[Appium] WebOSDriver has been successfully loaded in 2.949s
[Appium] WindowsDriver has been successfully loaded in 2.951s
[Appium] AndroidUiautomator2Driver has been successfully loaded in 2.950s
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLs in your client code to connect to this server:
http://192.168.1.26:4723/
http://127.0.0.1:4723/ (only accessible from the same host)
[Appium] Available drivers:
[Appium] - [email protected] (automationName 'Windows')
[Appium] - [email protected] (automationName 'UiAutomator2')
[Appium] - [email protected] (automationName 'webOS')
[Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
[HTTP] --> POST /session {"capabilities":{"alwaysMatch":{"platformName":"lgtv","appium:automationName":"webos","appium:deviceName":"lgTV","appium:deviceHost":"192.168.1.245","appium:appId":"com.domain.app","appium:app":"C:\Users\arunk\com.domain.app_1.0.0_all.ipk","appium:chromedriverExecutable":"C:\Users\arunk\Downloads\chromedriver.exe","appium:autoExtendDevMode":true,"appium:appLaunchCooldown":5000,"appium:connectHardwareKeyboard":false,"appium:newCommandTimeout":3600},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"lgtv","appium:automationName":"webos","appium:deviceName":"lgTV","appium:deviceHost":"192.168.1.245","appium:appId":"com.domain.app","appium:app":"C:\Users\arunk\com.domain.app_1.0.0_all.ipk","appium:chromedriverExecutable":"C:\Users\arunk\Downloads\chromedriver.exe","appium:autoExtendDevMode":true,"appium:appLaunchCooldown":5000,"appium:connectHardwareKeyboard":false,"appium:newCommandTimeout":3600}}
[AppiumDriver@4731] Calling AppiumDriver.createSession() with args: [{"platformName":"lgtv","appium:automationName":"webos","appium:deviceName":"lgTV","appium:deviceHost":"192.168.1.245","appium:appId":"com.domain.app","appium:app":"C:\Users\arunk\com.domain.app_1.0.0_all.ipk","appium:chromedriverExecutable":"C:\Users\arunk\Downloads\chromedriver.exe","appium:autoExtendDevMode":true,"appium:appLaunchCooldown":5000,"appium:connectHardwareKeyboard":false,"appium:newCommandTimeout":3600},null,{"alwaysMatch":{"platformName":"lgtv","appium:automationName":"webos","appium:deviceName":"lgTV","appium:deviceHost":"192.168.1.245","appium:appId":"com.domain.app","appium:app":"C:\Users\arunk\com.domain.app_1.0.0_all.ipk","appium:chromedriverExecutable":"C:\Users\arunk\Downloads\chromedriver.exe","appium:autoExtendDevMode":true,"appium:appLaunchCooldown":5000,"appium:connectHardwareKeyboard":false,"appium:newCommandTimeout":3600},"firstMatch":[{}]}]
[AppiumDriver@4731] Event 'newSessionRequested' logged at 1739584913450 (21:01:53 GMT-0500 (Eastern Standard Time))
[Appium] Attempting to find matching driver for automationName 'webos' and platformName 'lgtv'
[Appium] The 'webos' driver was installed and matched caps.
[Appium] Will require it at C:\Users\arunk\node_modules\appium-lg-webos-driver
[Appium] Requiring driver at C:\Users\arunk\node_modules\appium-lg-webos-driver\index.js
[AppiumDriver@4731] Appium v2.15.0 creating new WebOSDriver (v0.5.0) session
[AppiumDriver@4731] Checking BaseDriver versions for Appium and WebOSDriver
[AppiumDriver@4731] Appium's BaseDriver version is 9.15.0
[AppiumDriver@4731] WebOSDriver's BaseDriver version is 9.15.0
[WebOSDriver@a4bd]
[WebOSDriver@a4bd] Creating session with W3C capabilities: {
"alwaysMatch": {
"appium:debuggerPort": 9998,
"appium:websocketPort": 3000,
"appium:websocketPortSecure": 3001,
"appium:useSecureWebsocket": false,
"appium:autoExtendDevMode": true,
"appium:appLaunchCooldown": 5000,
"appium:keyCooldown": 750,
"appium:rcMode": "js",
"platformName": "lgtv",
"appium:automationName": "webos",
"appium:deviceName": "lgTV",
"appium:deviceHost": "192.168.1.245",
"appium:appId": "com.domain.app",
"appium:app": "C:\Users\arunk\com.domain.app_1.0.0_all.ipk",
"appium:chromedriverExecutable": "C:\Users\arunk\Downloads\chromedriver.exe",
"appium:connectHardwareKeyboard": false,
"appium:newCommandTimeout": 3600
},
"firstMatch": [
{}
]
}
[WebOSDriver@a4bd] The following provided capabilities were not recognized by this driver:
[WebOSDriver@a4bd] connectHardwareKeyboard
[e32f0797][WebOSDriver@a4bd] Session created with session id: e32f0797-04a2-42d5-a3f8-047e187e7bb4
[e32f0797][WebOSDriver] Extending dev mode on device
[e32f0797][WebOSDriver] Running command: C:\Users\arunk\Downloads\webOS_TV_SDK\CLI\bin\ares-extend-dev --device lgTV
[e32f0797][WebOSDriver] Getting device info
[e32f0797][WebOSDriver] Running command: C:\Users\arunk\Downloads\webOS_TV_SDK\CLI\bin\ares-device-info --device lgTV
[e32f0797][WebOSDriver] Installing app 'com.domain.app' from C:\Users\arunk\com.domain.app_1.0.0_all.ipk
[e32f0797][WebOSDriver] Running command: C:\Users\arunk\Downloads\webOS_TV_SDK\CLI\bin\ares-install C:\Users\arunk\com.domain.app_1.0.0_all.ipk --device lgTV
[e32f0797][WebOSDriver] Connecting remote; address any prompts on screen now!
[e32f0797][AppiumDriver@4731] Event 'newSessionStarted' logged at 1739584919330 (21:01:59 GMT-0500 (Eastern Standard Time))
[e32f0797][AppiumDriver@4731] Encountered internal error running command: Error: socket hang up
at connResetException (node:internal/errors:720:14)
at Socket.socketOnEnd (node:_http_client:525:23)
at Socket.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1368:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
[e32f0797][HTTP] <-- POST /session 500 5935 ms - 594

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