-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net::ERR_CONTENT_LENGTH_MISMATCH returning large content when port-forwarding from devcontainer #9969
Comments
Can you compare what the browser gets with the original? The WSL and Dev Containers extensions use the same port forwarding implementation, not sure what could cause this. |
Not quite sure what you mean by "the original" Using this project I consistently see the content mismatch error in the devcontainer here but not windows or wsl. Interested if you see similar |
Seeing it with Docker in WSL. I didn't see it on Mac. Using PowerShell to download from Docker in WSL shows that it sometimes works and sometimes doesn't get all bytes. Maybe we're closing some stream too early? /cc @alexr00 |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Type: Bug
VSCode 1.91.0-insider (reproducible with latest stable release)
Docker version 25.0.3, build 4debf41 (installed within WSL, not docker desktop)
Run local devcontainer within WSL (ubuntu 22.04 image)
Run any http webserver and port forward with vscode to windows host (I have best luck reproducing with flask python server)
Access content from windows host browser.
This seems to depend on the size of the content, most reliable when it is at least >100kb
Expected Behavior
Content is successfully displayed in the browser
Actual Behavior
Content appears to be truncated, browser logs
Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
It is worth noting that this issue does NOT happen when running and port forwarding the application in WSL directly, ONLY when running in a devcontainer
Extension version: 0.372.0
VS Code version: Code - Insiders 1.91.0-insider (21decd9342dd2e14f2a7cd2883f84e6ff43ea0df, 2024-06-11T06:46:21.055Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Remote OS version: Linux x64 5.15.146.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.15.146.1-microsoft-standard-WSL2
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: