-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed as not planned
Closed as not planned
Copy link
Labels
Bug 🐛help wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
9.0.7
Node.js Version
20.10.0
Mode
Standalone Mode
Which capabilities are you using?
browserstack: {
capabilities: [
{
exclude: [
'../../../e2e/shared/**/*.android.test.ts',
'../tests/**/*.android.test.ts',
],
'appium:app': `bs://${BROWSERSTACK_APP_ID}`,
platformName: DEVICE_OS,
'appium:deviceName': 'iPhone 15 Pro',
'appium:newCommandTimeout': Constants.WAIT_TIME_WORKERS_MS,
'appium:fullReset': true,
'appium:shouldTerminateApp': true,
'bstack:options': {
projectName: '[e2e] iOS',
sessionName: CIRCLE_JOB,
buildName: CIRCLE_BRANCH,
networkLogs: 'true',
appiumVersion: '2.6.0', (highest version provided by BS)
midSessionInstallApps: [`bs://${BROWSERSTACK_APP_ID}`],
},
},
],
},What happened?
I'm receiving the below error when I'm trying to run iOS specs on Browserstack.
- Node
v20.10.0- tried with older and newer but I met the exact same issue - Appium
v2.11.3(latest) - tried with older (the highest version provided by BS isv2.6.0) - xcuitest
7.24.18(latest) - tried with older - uiautomator2
3.7.7(latest) - tried with older
Local error:
[0-0] 2024-08-28T11:49:12.322Z ERROR webdriver: Error: Failed to fetch https://hub-cloud.browserstack.com/wd/hub/session: [object Object]
[0-0] at FetchRequest._libRequest (/Users/lorandberekmeri/git/node_modules/webdriver/build/index.js:1373:15)
[0-0] at FetchRequest._request (/Users/lorandberekmeri/git/node_modules/webdriver/build/index.js:1280:20)
[0-0] at startWebDriverSession (/Users/lorandberekmeri/git/node_modules/webdriver/build/index.js:895:16)
[0-0] at Function.newSession (/Users/lorandberekmeri/git/node_modules/webdriver/build/index.js:1508:41)
[0-0] at remote (/Users/lorandberekmeri/git/node_modules/webdriverio/build/index.js:7043:20)
[0-0] at async Runner._startSession (file:///Users/lorandberekmeri/git/node_modules/@wdio/runner/build/index.js:778:23)
[0-0] at async Runner._initSession (file:///Users/lorandberekmeri/git/node_modules/@wdio/runner/build/index.js:752:22)
[0-0] at async Runner.run (file:///Users/lorandberekmeri/git/node_modules/@wdio/runner/build/index.js:659:16)
CircleCI job error:
[0-0] RUNNING in ios - file:///e2e/tests/specs/ads/ad_cards/verifyAdCard.SwitchLayout.test.ts
[0-0] 2024-08-28T08:53:50.254Z ERROR @wdio/utils:shim: TypeError: fetch failed
[0-0] at Object.fetch (node:internal/deps/undici/undici:11730:11)
[0-0] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[0-0] at FetchRequest._libRequest (/home/circleci/project/node_modules/webdriver/build/index.js:1360:24)
[0-0] at FetchRequest._request (/home/circleci/project/node_modules/webdriver/build/index.js:1280:20)
[0-0] at Browser.wrapCommandFn (/home/circleci/project/node_modules/@wdio/utils/build/index.js:1368:23)
[0-0] at Browser.saveScreenshot (/home/circleci/project/node_modules/webdriverio/build/index.js:3745:20)
[0-0] at Browser.wrapCommandFn (/home/circleci/project/node_modules/@wdio/utils/build/index.js:1368:23)
[0-0] at Object.afterTest (/home/circleci/project/e2e/config/wdio.base.config.ts:310:17)
[0-0] at async Promise.all (index 0)
[0-0] at executeHooksWithArgs (/home/circleci/project/node_modules/@wdio/utils/build/index.js:1351:18)
[0-0] Error in "AfterTest Hook"
What is your expected behavior?
No response
How to reproduce the bug.
Upgrade your project to wdio v9 and try running automation specs on BS.
Relevant log output
[0-0] 2024-08-28T11:49:12.322Z ERROR webdriver: Error: Failed to fetch https://hub-cloud.browserstack.com/wd/hub/session: [object Object]
[0-0] at FetchRequest._libRequest (/Users/lorandberekmeri/git/node_modules/webdriver/build/index.js:1373:15)
[0-0] at FetchRequest._request (/Users/lorandberekmeri/git/node_modules/webdriver/build/index.js:1280:20)
[0-0] at startWebDriverSession (/Users/lorandberekmeri/git/node_modules/webdriver/build/index.js:895:16)
[0-0] at Function.newSession (/Users/lorandberekmeri/git/node_modules/webdriver/build/index.js:1508:41)
[0-0] at remote (/Users/lorandberekmeri/git/node_modules/webdriverio/build/index.js:7043:20)
[0-0] at async Runner._startSession (file:///Users/lorandberekmeri/git/node_modules/@wdio/runner/build/index.js:778:23)
[0-0] at async Runner._initSession (file:///Users/lorandberekmeri/git/node_modules/@wdio/runner/build/index.js:752:22)
[0-0] at async Runner.run (file:///Users/lorandberekmeri/git/node_modules/@wdio/runner/build/index.js:659:16)Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug 🐛help wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested