-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
latest
Node.js Version
latest LTS
Mode
Standalone Mode
Which capabilities are you using?
Does not matterWhat happened?
It looks like the fetch API timeout is currently not configured by WDIO, so it always uses the default one. See https://stackoverflow.com/questions/76755913/increase-timeout-in-nodejs-built-in-fetch-api for more details.
What is your expected behavior?
WDIO should wait until the provided timeout occurs or the session creation request is finished
How to reproduce the bug.
- Set connectionRetryTimeout option to 6 or more minutes.
- Send a session creation request, which takes more than 5 minutes
Relevant log output
WebDriverError: Request failed with error code UND_ERR_HEADERS_TIMEOUT when running "http://127.0.0.1:4567/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"platformName":"iOS","appium:platformVersion":"17.5","appium:deviceName":"iPhone 15","appium:automationName":"XCUITest","appium:launchWithIDB":true,"appium:noReset":true,"appium:maxTypingFrequency":30,"appium:clearSystemFiles":true,"appium:showXcodeLog":true,"appium:wdaLaunchTimeout":960000,"appium:wdaConnectionTimeout":960000,"appium:useNewWDA":true,"appium:webviewConnectTimeout":30000,"appium:simulatorStartupTimeout":960000,"appium:app":"/Users/runner/work/appium-xcuitest-driver/appium-xcuitest-driver/test/assets/UIKitCatalog-iphonesimulator.app","appium:usePrebuiltWDA":false},"firstMatch":[{}]}}"
at startWebDriverSession (file:///Users/runner/work/appium-xcuitest-driver/appium-xcuitest-driver/node_modules/webdriver/build/index.js:857:11)
at async Function.newSession (file:///Users/runner/work/appium-xcuitest-driver/appium-xcuitest-driver/node_modules/webdriver/build/index.js:1558:41)
at async remote (file:///Users/runner/work/appium-xcuitest-driver/appium-xcuitest-driver/node_modules/webdriverio/build/index.js:7339:20)
at async initSession (test/functional/helpers/session.js:14:14)
at async Context.<anonymous> (test/functional/basic/basic-e2e-specs.js:26:14)https://github.com/appium/appium-xcuitest-driver/actions/runs/11381654527?pr=2480
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
### Is there an existing issue for this?
- [X] I have searched the existing issues
Reactions are currently unavailable