microsoft / microsoft/WSL

WSL1 chromium under chromedriver returns empty body because of net::ERR_FAILED

Open
#7,234 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Microsoft Windows [Version 10.0.19044.1147]
Kernel version: 5.10.16
Debian 10

lunching chrome with

/usr/bin/chromium --allow-insecure-localhost --allow-running-insecure-content --debug --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-gpu --disable-hang-monitor --disable-ipv6 --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-automation --enable-blink-features=ShadowDOMV0 --enable-logging --headless --ignore-certificate-errors --log-level=0 --no-first-run --no-sandbox --no-service-autorun --password-store=basic --remote-debugging-port=9222 --test-type=webdriver --use-mock-keychain --user-data-dir=/tmp/.org.chromium.Chromium.YrhI4h --window-size=1024,768

chromedriver show this log

[1627297446,877][DEBUG]: DevTools WebSocket Event: DOM.childNodeInserted 6C7292B58B8BC0F325D2AB63FC819E17 {
   "node": {
      "attributes": [ "lang", "ru" ],
      "backendNodeId": 3,
      "childNodeCount": 0,
      "frameId": "6C7292B58B8BC0F325D2AB63FC819E17",
      "localName": "html",
      "nodeId": 3,
      "nodeName": "HTML",
      "nodeType": 1,
      "nodeValue": ""
   },
   "parentNodeId": 1,
   "previousNodeId": 2
}
[1627297446,877][DEBUG]: DevTools WebSocket Event: DOM.childNodeCountUpdated 6C7292B58B8BC0F325D2AB63FC819E17 {
   "childNodeCount": 1,
   "nodeId": 3
}
[1627297446,877][DEBUG]: DevTools WebSocket Event: Log.entryAdded 6C7292B58B8BC0F325D2AB63FC819E17 {
   "entry": {
      "level": "error",
      "networkRequestId": "8090E523E14B538F152D38640D86B8C8",
      "source": "network",
      "text": "Failed to load resource: net::ERR_FAILED",
      "timestamp": 1.6272974468764902e+12,
      "url": "https://hybrid.kz/registration/"
   }
}

Chrome headless remote debugger has only one entry in console
Failed to load resource: net::ERR_FAILED

and loaded HTML page with HEAD tag only.

Under WSL2 everything works as expected

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the reported Chromium command on WSL1 using Debian 10 and compare it with WSL2, checking the shown remote-debugger output and the affected URL. Identify whether the empty document and net::ERR_FAILED originate in WSL1 networking or the Chromium setup; done means the page loads its body successfully under WSL1.

Written by the indexing model from the issue text.

Assessment

Tech stack
debian, linux
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.