I am running my application on my production server and it is giving me this error:
File "/usr/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 1161, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.6/urllib2.py", line 1136, in do_open
raise URLError(err)
URLError: <urlopen error timed out>
BTW I understand the error
. But this is not interesting. The interesting part is that when I run this on my local machine or test server
every thing is working great. It is just too annoying.
Every where I am using the same OS:
ubuntu 10.04
What could be the possible reason? Any help will be appreciated.
Can you retrieve the URL in question with wget
at your production server? This could be a firewall problem rather than a Python bug.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With