fix(webdriverio): use AbortSignal.timeout() instead of an AbortController#13783
fix(webdriverio): use AbortSignal.timeout() instead of an AbortController#13783christian-bromann wants to merge 1 commit intomainfrom
Conversation
f32cf3b to
53533c4
Compare
eslint-plugin-wdio
@wdio/allure-reporter
@wdio/appium-service
@wdio/browserstack-service
@wdio/browser-runner
@wdio/cli
@wdio/concise-reporter
@wdio/config
@wdio/cucumber-framework
@wdio/firefox-profile-service
@wdio/dot-reporter
@wdio/jasmine-framework
@wdio/globals
@wdio/junit-reporter
@wdio/json-reporter
@wdio/lighthouse-service
@wdio/local-runner
@wdio/logger
@wdio/mocha-framework
@wdio/protocols
@wdio/repl
@wdio/reporter
@wdio/runner
@wdio/shared-store-service
@wdio/sauce-service
@wdio/smoke-test-cjs-service
@wdio/smoke-test-reporter
@wdio/spec-reporter
@wdio/smoke-test-service
@wdio/static-server-service
@wdio/sumologic-reporter
@wdio/types
@wdio/utils
@wdio/webdriver-mock-service
webdriver
webdriverio
@wdio/testingbot-service
commit: |
|
Thanks @christian-bromann According to the attached SO article the proposed solution does not actually change the current (unexpected) fetch behaviour. E.g. it works for lower timeouts, but is ignored for greater values. I assume it makes sense to use the |
|
@mykola-mokhnach |
|
the original error I pasted is coming from undici. |
This is because the Node.js implementation for
Can you verify if this change maybe fixes the problem. You can test it by adding the following capability to your project: pnpm add https://pkg.pr.new/webdriverio/webdriverio/webdriverio@13783 |
Unfortunately it did not work with my local tests, the request still times out. Perhaps I do something wrong 🤷 |
|
I have just added the change to the CI, maybe it would perform better there... |
|
This doesn't seem like to solve the issue, let me get back to the drawing board. |
|
@mykola-mokhnach unfortunately this seems to be an issue with Node.js native |
|
Closing in favor of #13852 |
* fix(webdriver): use undici for requests in Node.js * apply changes from #13783 * conditional environment * fix tests * fix interop
Proposed changes
use
AbortSignal.timeout(timeout)instead of initiating anAbortController.fixes #13778
Types of changes
Checklist
Backport Request
//: # (The current
mainbranch is the development branch for WebdriverIO v9. If your change should be released to the current major version of WebdriverIO (v8), please raise another PR with the same changes against thev8branch.)v9and doesn't need to be back-ported#XXXXXFurther comments
@mykola-mokhnach mind checking if this resolves the issue?
Reviewers: @webdriverio/project-committers