Issue 19012: urllib2: bad proxy configuration throws "getaddrinfo" error (original) (raw)
Issue19012
Created on 2013-09-13 18:57 by SjoerdOptLand, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (5) | ||
---|---|---|
msg197629 - (view) | Author: Sjoerd (SjoerdOptLand) | Date: 2013-09-13 18:57 |
I'm sorry for providing very little information, but I don't have the system at hand anymore. Therefore I will try to reproduce what I know, hoping that you recognise the problem. If not, I will get back to the system and try to obtain the necessary information. Calling liburl2.openurl('http://www.google.com') gave me an getaddrinfo error. Therefore, I checked my DNS configuration, which seemed okay and I issued a socket.getaddrinfo('www.google.com'), which correctly returned an IP address. Finally, I found out that I had an old, non-existing (?) proxy configuration in the Windows registry (that indeed turned up when calling liburl2.getproxies()). Removing the proxy configuration from my Windows registry solved the problem. Is it preliminary to conclude that the getaddrinfo error may actually mean several things (not only a simple getaddrinfo problem)? If so, I suggest that the error message be broadened ("DNS lookup or proxy problem"), because it took me several hours to find the proxy problem. | ||
msg197716 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2013-09-14 15:25 |
The getaddrinfo error message should *not* refer to proxies, because getaddrinfo does not do anything involving proxy configuration. Presumably the error occurred when liburl2 tried to resolve the proxy. So, it is liburl2 that needs to make sure that error is placed in a comprehensible context. liburl2 is not an stdlib module. You should report your problem to the liburl2 maintainers. | ||
msg197977 - (view) | Author: Sjoerd (SjoerdOptLand) | Date: 2013-09-17 09:43 |
That happens when citing things from the top of my head... it is not liburl2 but urllib2 that I used, excuse me. (And urlopen instead of openurl...) From http://docs.python.org/2/library/urllib2.html it seems to be a Standard Library module to me, am I mistaken? If so, how do I find the urllib2 maintainers? | ||
msg197985 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2013-09-17 13:57 |
urllib2 is a python2 stdlib module, yes. Can you provide a traceback? I would have thought that the traceback would give a clue as to what the real problem was, so I'm very curious to see it. Maybe it only gives a clue if you already know what you are looking at :) | ||
msg266848 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2016-06-02 00:00 |
Closing because no reproducer provided. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:50 | admin | set | github: 63212 |
2016-06-02 00:00:25 | r.david.murray | set | status: open -> closedresolution: works for memessages: + stage: resolved |
2013-09-17 13:57:24 | r.david.murray | set | status: closed -> openversions: + Python 2.7, - 3rd partytitle: liburl2: bad proxy configuration throws "getaddrinfo" error -> urllib2: bad proxy configuration throws "getaddrinfo" errormessages: + resolution: not a bug -> (no value)stage: resolved -> (no value) |
2013-09-17 09:43:18 | SjoerdOptLand | set | messages: + |
2013-09-14 15:25:22 | r.david.murray | set | status: open -> closedversions: + 3rd party, - Python 2.7nosy: + r.david.murraymessages: + resolution: not a bugstage: resolved |
2013-09-13 18:57:22 | SjoerdOptLand | create |