-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
socket.gaierror on requests even though connector resolve=False #399
Comments
@digitaldavenyc |
@asvetlov DNS information isn't always necessary. Just to do a GET request, I don't need DNS information. I think renaming it to cache_dns would be a bit more explicit, I assumed marking resolve False wouldn't make the DNS request. The real issue here is how to catch the error thrown, I'm of the opinion aiohttp library needs to catch the |
Yes,
|
I'm working on patch for |
I'll give it a shot but I'm not sure if wrapping the
The |
Did you use IP addresses or DNS names in your code? |
I'm making requests with full http URLs, not DNS names or IP addresses but I assume the library parses the URL and uses the hostname to get the DNS address. Is there anyway to turn this feature off? |
If you URL has DNS name as HOST the system (aiohttp+asyncio+python) should pass it through DNS resolver. The last unsurprisingly may raise Or, maybe, I don't understand you clean. |
See also #415 for new names |
Fixed by #415 |
So this is my setup for retrieving a page
This is error is periodically thrown
I'm not sure why getaddrinfo is being called because I have resolve host marked as false. I'd prefer it if this was not called at all since I do not need this information but if there is a way to wrap it in a
try exception
that would be helpful as well.The text was updated successfully, but these errors were encountered: