-
-
Notifications
You must be signed in to change notification settings - Fork 747
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
get_remote_addr return (str(info[0]), int(info[1])) if isinstance(info, tuple) else None ValueError: invalid literal for int() with base 10: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' #1145
Comments
try to modify the code in site-packages\uvicorn\protocols\utils.py
got info print as below
|
wont have a windows machine at hand to reproduce that, would you throw up a PR that would make our CI fail ? |
my way to make it back to work quickly is dirty,I just let this socket_info be None,
unsure what effects it will produce. |
I tried 0.14 and 0.15, but none of them reproduced your problem. |
I had the same problem with version 0.15.0 as with the 600 and 1145. At the same time, I tried to shrink the version to 0.14.0 and 0.13.4, but the problem remained. Describe the bug
My main.py module code is as follows:
I tried modifying the uvicorn\protocols\utils.py code to print some information, as follow
When a request is sent, the following information is printed:
|
it's quite weired problem,when I first use the 0.14 and code I provide above it was normal,but another day rerun its broken.it's totally the same code.and I can only fix it by the way I provided above |
LmeSzinc/AzurLaneAutoScript#876 (comment) Summary
Solution
|
Is this still an issue? |
This title scared me lol |
Since I can't reproduce the issue, and I didn't receive any reply about it, I'll assume that folks can solve the issue with the comment above: #1145 (comment). I'll be closing this, but if you have a solution that needs a PR, feel free to create it, and explain how to reproduce, and how the fix works. 🙏 |
Thank you! my environment: |
Checklist
#600
same issue like this old one
Describe the bug
on windows,venv
To reproduce
test.py:
use uvicorn:
open browser and open 127.0.0.1:61111,got no response,and check console
got
NOTE:
log-level
flag).<details>
to make tracebacks/logs collapsible if they're very large (see https://gist.github.com/ericclemmons/b146fe5da72ca1f706b2ef72a20ac39d).-->
Environment
Running uvicorn 0.14.0 with CPython 3.8.3 on Windows 10 x64
Additional context
The text was updated successfully, but these errors were encountered: