[BUG] Error: browserType.connect: Unknown scheme for .initialize
See original GitHub issueContext:
- Playwright Version: 1.12.3
- Operating System: mac
- Node.js version: 14
- Browser: [e.g. All, Chromium, Firefox, WebKit]
Error: browserType.connect: Unknown scheme for .initialize
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and that we can run and debug locally. For example:
async setup() {
console.log('Setting up environment ...');
await super.setup();
if (this.projectConfig.executeLocally) {
console.log('Executing locally');
this.global.__BROWSER__ = await {chromium, webkit, firefox}[this.projectConfig.browser].launch({
headless: this.projectConfig.headless,
slowMo: this.projectConfig.slowMo ? 250 : 0,
timeout: 0,
}).catch(e => console.log(`Error occurred during launching local browser: \n${e}`));
} else {
console.log('Executing remotely');
let temporaryName = uuidv4();
const browserVersion = this.projectConfig.browserVersion || "92.0";
this.global.__BROWSER__ = await {chromium, webkit, firefox}[this.projectConfig.browser].connect({
wsEndpoint: `${this.projectConfig.hub}/playwright/chromium/${browserVersion}?headless=${this.projectConfig.headless}&enableVideo=${this.projectConfig.enableVideo}&name=${temporaryName}`,
slowMo: this.projectConfig.slowMo ? 250 : 0,
enableVNC: this.projectConfig.enableVNC,
timeout: 0,
}).catch(e => console.log(`Error occurred during launching remote browser: \n${e}`));
let sessionId;
try {
const res = await axios(url);
for (const obj of Object.entries(res.data.sessions)) {
if (obj[1].caps.name === temporaryName) {
sessionId = obj[0];
}
}
} catch (e) {
console.log('Session id couldn\'t be found');
console.log(e.message);
}
this.global.sessionId = sessionId;
}
}
Describe the bug
Encounter the error after upgrading from 1.12.1 to 1.12.2 or any other newer version, after debugging it seems failing in launching the browser or connecting to the remote server when running it remotely
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Playwright (.NET) tries to use different browser versions ...
I have created some tests using Playwright with .NET bindings. [OneTimeSetUp] public async Task OneTimeSetUp() { random = new Random(); ...
Read more >Playwright changelog - Awesome Node.js - LibHunt
#3935 - [BUG] browserType.connect() throws on executablePath errors. Browser Versions. Chromium 86.0.4238.0; Mozilla Firefox 80.0b8; WebKit 14.0 Issues ...
Read more >The playwright-ruby-client from YusukeIwaki - GithubHelp
Encounter the error Error: Unknown scheme for .initialize after debugging it seems failing in launching the browser or connecting to the remote server...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think this question should be asked on moon’s issue tracker: https://github.com/aerokube/moon/issues
@mxschmitt actually we are using moon cluster const HUB_URL = “wss://moon-hub.exmample”; and this is the endpoint im using