webdriverio: @wdio/sync: HTTPError: Response code 404 (Not Found)
Console log throws error 404 as shown below when using multi remote feature using selenium and browserstack services
Execution of 1 spec files started at 2020-10-14T21:28:37.937Z
2020-10-14T21:28:37.940Z DEBUG @wdio/utils:initialiseServices: initialise service "selenium-standalone" as NPM package
2020-10-14T21:28:37.947Z DEBUG @wdio/utils:initialiseServices: initialise service "browserstack" as NPM package
2020-10-14T21:28:37.948Z INFO @wdio/cli:launcher: Run onPrepare hook
2020-10-14T21:28:37.953Z INFO @wdio/browserstack-service: browserstackLocal is not enabled - skipping...
2020-10-14T21:28:41.640Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2020-10-14T21:28:41.645Z INFO @wdio/local-runner: Start worker 0-0 with arg: wdio4.conf.js
[0-0] 2020-10-14T21:28:42.217Z INFO @wdio/local-runner: Run worker command: run
[0-0] 2020-10-14T21:28:43.084Z DEBUG @wdio/local-runner:utils: init multiremote session
[0-0] 2020-10-14T21:28:43.086Z INFO webdriverio: Initiate new session using the ./protocol-stub protocol
[0-0] 2020-10-14T21:28:43.087Z INFO webdriverio: Initiate new session using the ./protocol-stub protocol
[0-0] RUNNING in MultiRemote - C:\Users\amrka\Desktop\Work\Appium-wdio\src\test\specs\CrossPlatform_Suite.js
[0-0] 2020-10-14T21:28:43.116Z DEBUG @wdio/utils:initialiseServices: initialise service "selenium-standalone" as NPM package
2020-10-14T21:28:43.117Z DEBUG @wdio/utils:initialiseServices: initialise service "browserstack" as NPM package
[0-0] 2020-10-14T21:28:43.118Z DEBUG @wdio/local-runner:utils: init multiremote session
[0-0] 2020-10-14T21:28:43.121Z INFO webdriverio: Initiate new session using the webdriver protocol
[0-0] 2020-10-14T21:28:43.121Z INFO webdriverio: Initiate new session using the webdriver protocol
[0-0] 2020-10-14T21:28:43.122Z INFO webdriver: [POST] http://localhost:4444/wd/hub/session
[0-0] 2020-10-14T21:28:43.122Z INFO webdriver: DATA {
capabilities: {
alwaysMatch: {
browserName: 'chrome',
acceptInsecureCerts: true,
'goog:chromeOptions': [Object]
},
firstMatch: [ {} ]
},
desiredCapabilities: {
browserName: 'chrome',
acceptInsecureCerts: true,
'goog:chromeOptions': { args: [Array] }
}
}
[0-0] 2020-10-14T21:28:43.129Z INFO webdriver: [POST] https://hub-cloud.browserstack.com/wd/hub/session
2020-10-14T21:28:43.129Z INFO webdriver: DATA {
capabilities: {
alwaysMatch: {
platformName: 'Android',
device: 'Samsung Galaxy S20',
os_version: '10.0',
project: 'Safe App Android automation test',
build: 'APP Android Build',
name: 'APP - testV 1.87.000',
app: 'bs://aaaaa',
autoGrantPermissions: true,
nativeWebScreenshot: true,
endureWebviewsHavePages: true,
disableWindowAnimation: true,
'bstack:options': [Object]
},
firstMatch: [ {} ]
},
desiredCapabilities: {
platformName: 'Android',
device: 'Samsung Galaxy S20',
os_version: '10.0',
project: 'App Android automation test',
build: 'APP Android Build',
name: 'APP - test V 1.87.000',
app: 'bs://aaaa',
autoGrantPermissions: true,
nativeWebScreenshot: true,
endureWebviewsHavePages: true,
disableWindowAnimation: true,
'bstack:options': { appium_version: '1.18.0' }
}
}
[0-0] 2020-10-14T21:29:03.143Z ERROR @wdio/sync: HTTPError: Response code 404 (Not Found)
at Request.<anonymous> (C:\Users\amrka\Desktop\Work\Appium-wdio\node_modules\got\dist\source\as-promise\index.js:117:42)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[0-0] 2020-10-14T21:29:03.251Z INFO webdriver: COMMAND navigateTo("https://pentest.test.com/")
[0-0] 2020-10-14T21:29:03.252Z INFO webdriver: [POST] http://localhost:4444/wd/hub/session/45d210fcfcbd7214c8068b52b6340102/url
2020-10-14T21:29:03.252Z INFO webdriver: DATA { url: 'https://pentest.test.com/' }
[0-0] (node:13624) UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found)
at Request.<anonymous> (C:\Users\amrka\Desktop\Work\Appium-wdio\node_modules\got\dist\source\as-promise\index.js:117:42)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[0-0] (node:13624) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:13624) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (10 by maintainers)
@hieuxlu
browser.capabilitiesshould give you access to this information.