-
Notifications
You must be signed in to change notification settings - Fork 841
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
WSL, Django Server started on windows, Can't access it on ubuntu WSL (using curl) #11409
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
Windows Version
Microsoft Windows [Version 10.0.19045.4170]
WSL Version
1.2.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1
Distro Version
Ubuntu 20.04
Other Software
Django==4.2.3
Python 3.8.0
Repro Steps
Start a boiler plate django server on windows machine using:
python manage.py runserver 0.0.0.0:8000
and then on WSL access it using:
curl -I http://127.0.0.1:8000
Expected Behavior
I would have expected this reponse
HTTP/1.1 200 OK Date: Tue, 02 Apr 2024 09:03:15 GMT Server: WSGIServer/0.2 CPython/3.10.12 Content-Type: text/html; charset=utf-8 X-Frame-Options: DENY Vary: Cookie X-Content-Type-Options: nosniff Referrer-Policy: same-origin Cross-Origin-Opener-Policy: same-origin
Actual Behavior
Diagnostic Logs
I think server ran fine:
The text was updated successfully, but these errors were encountered: