You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to run the example using selenium webdriver (JS/TS) and use the graphQL API for that. First I create a webdriver instance similar to your java code. Then I run the following code to set things up:
file:///Users/xyz/git/visual-examples/wd-js/node_modules/@apollo/src/errors/index.ts:97
super(errorMessage);
^
ApolloError: [trace/span=7cc193f9d78897b0523a969a84aa7978/979ec5c33fce66c7] Failed to fetch job meta info: Not Found
at new ApolloError (file:///Users/xyz/git/visual-examples/wd-js/node_modules/@apollo/src/errors/index.ts:97:5)
at file:///Users/xyz/git/visual-examples/wd-js/node_modules/@apollo/src/core/QueryManager.ts:1146:36
at both (file:///Users/xyz/git/visual-examples/wd-js/node_modules/@apollo/src/utilities/observables/asyncMap.ts:31:30)
at file:///Users/xyz/git/visual-examples/wd-js/node_modules/@apollo/src/utilities/observables/asyncMap.ts:20:47
at new Promise (<anonymous>)
at Object.then (file:///Users/xyz/git/visual-examples/wd-js/node_modules/@apollo/src/utilities/observables/asyncMap.ts:20:16)
at Object.next (file:///Users/xyz/git/visual-examples/wd-js/node_modules/@apollo/src/utilities/observables/asyncMap.ts:32:39)
at notifySubscription (/Users/xyz/git/visual-examples/wd-js/node_modules/zen-observable/lib/Observable.js:135:18)
at onNotify (/Users/xyz/git/visual-examples/wd-js/node_modules/zen-observable/lib/Observable.js:179:3)
at SubscriptionObserver.next (/Users/xyz/git/visual-examples/wd-js/node_modules/zen-observable/lib/Observable.js:235:7) {
graphQLErrors: [
{
message: '[trace/span=7cc193f9d78897b0523a969a84aa7978/979ec5c33fce66c7] Failed to fetch job meta info: Not Found',
locations: [Array],
path: [Array]
}
],
protocolErrors: [],
clientErrors: [],
networkError: null,
extraInfo: undefined
}
Process exited with code 1
Is the required sessionId not webdrivers session id? Where can I get it from? 🤔
Thanks!
The text was updated successfully, but these errors were encountered:
Are you running the selenium session on Sauce Labs or on your own grid ?
Does this error happen consistently or randomly ?
The api.graphql.webdriverSessionFromArchive routine allows you to retrieve the Browser/OS combination from a Sauce Lab session (represented it's id) and to attach it to the upcoming visual checks. If the selenium session is not running on Sauce, this call should not be used.
Note: We are aware of randomly occurring error on that endpoint. We have found the root cause and are in the process of fixing it.
Hi,
I'm running the session on saucelabs and it happens consistently.
This is the code to create the driver:
exportclassTestUtils{staticasyncgetWebDriver(username: string=process.env.SAUCE_USERNAME,accessKey: string=process.env.SAUCE_ACCESS_KEY): Promise<WebDriver>{if(!username||!accessKey){throw("Sauce Labs credentials not found. Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY in your environment");}// Can be found at "Driver creation" on https://app.saucelabs.com/user-settingsconstwebDriverUrl="https://"+username+":"+accessKey+"@ondemand.eu-central-1.saucelabs.com:443/wd/hub";// Set capabilities for WebDriverconstcaps: Capabilities=newCapabilities();caps.setBrowserName("chrome");constbuilder=newBuilder().withCapabilities(caps);builder.usingServer(webDriverUrl);returnawaitbuilder.build();}}// inside test files:constdriver=awaitTestUtils.getWebDriver();
Hi,
Im trying to run the example using selenium webdriver (JS/TS) and use the graphQL API for that. First I create a webdriver instance similar to your java code. Then I run the following code to set things up:
I can see on saucelabs.com that the build was started successfully. I now try to get the metadata from the build:
But then I run into this error:
Is the required sessionId not webdrivers session id? Where can I get it from? 🤔
Thanks!
The text was updated successfully, but these errors were encountered: