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

matt matthew.a.hess at gmail.com
Sat Sep 10 17:44:01 EDT 2011


On Sep 9, 6:02 pm, Steven D'Aprano <steve
+comp.lang.pyt... at pearwood.info> wrote:
> 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

No proxy.  It's all local over the loopback interface (probably should
have mentioned that).  The service I'm POSTing to is a Python web app
with CherryPy as the framework.  Also, because of some dependency
issues I'm using Python 2.6.



More information about the Python-list mailing list