EbookFoundation / regluit

webapp for unglue.it
http://unglue.it
Other
50 stars 17 forks source link

try to manage booxtream download limits #25

Open eshellman opened 7 years ago

eshellman commented 7 years ago

decrement the counts of booxtream so that server will refressh properly; currently, there's a timout generated when send to kindle tries to get an expired file: Traceback (most recent call last): File "/opt/regluit/ENV/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response response = callback(request, callback_args, callback_kwargs) File "/opt/regluit/ENV/local/lib/python2.7/site-packages/django/views/decorators/http.py", line 41, in inner return func(request, args, kwargs) File "/opt/regluit/ENV/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view return view_func(args, *kwargs) File "/opt/regluit/frontend/views.py", line 2822, in send_to_kindle filehandle = urllib.urlopen(ebook_url) File "/usr/lib/python2.7/urllib.py", line 84, in urlopen return opener.open(url) File "/usr/lib/python2.7/urllib.py", line 205, in open return getattr(self, name)(url) File "/usr/lib/python2.7/urllib.py", line 342, in open_http h.endheaders(data) File "/usr/lib/python2.7/httplib.py", line 951, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 811, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 773, in send self.connect() File "/usr/lib/python2.7/httplib.py", line 754, in connect self.timeout, self.source_address) File "/usr/lib/python2.7/socket.py", line 571, in create_connection raise err IOError: [Errno socket error] [Errno 110] Connection timed out