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

Functional tests fail with socket hang up mid test #4205

Open
shravyakusuma09 opened this issue May 7, 2024 · 1 comment
Open

Functional tests fail with socket hang up mid test #4205

shravyakusuma09 opened this issue May 7, 2024 · 1 comment

Comments

@shravyakusuma09
Copy link

Description of the bug/issue

Functional tests failing with Socket hang up when run using Zap 2.14 and night watch - 1.3.7 and chromedriver - 124.0.1. This has suddenly stopped working, even without any changes. I've upgraded nightwatch to the latest version 3.6.1 but facing the same issue.

Error:
POST /session - ECONNRESET Using: chrome (124.0.6367.119) on Windows platform. Error: socket hang up at connResetException (internal/errors.js:639:14)

Attached the nightwatch config file.

nightwatch.conf.txt

Steps to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Sample test

No response

Command to run

No response

Verbose Output

No response

Nightwatch Configuration

No response

Nightwatch.js Version

3.6.1

Node Version

20.12.2

Browser

Chrome 124.0.1

Operating System

Windows 10

Additional Information

No response

@garg3133
Copy link
Member

Error: socket hang up usually happens when the webdriver server (like ChromeDriver) takes more time to respond to a request than the set limit of HTTP timeout.

You can try increasing the timeout by adding a property config to webdriver config:

webdriver: {
  // other properties
  timeout_options: {
    timeout: 120000, // set HTTP timeout to 120 secs
  }
}

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

2 participants