IOError 35 when trying to read the result of call to urllib2.urlopen

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat Sep 10 03:02:08 CEST 2011


matt wrote:

> When I try to look at "resp_body" I get this error:
> 
> IOError: [Errno 35] Resource temporarily unavailable
> 
> I posted to the same URI using curl and it worked fine, so I don't
> think it has to do with the server.

Are your Python code and curl both using the same proxy? It may be that one
is going direct and the other is using a proxy.

Or perhaps the destination is just flaky, and the resource genuinely is
temporarily unavailable. Or it doesn't like your useragent string and is
lying.


-- 
Steven




More information about the Python-list mailing list