Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Timeout error #53

Open
borisvg opened this issue Dec 10, 2014 · 0 comments
Open

Timeout error #53

borisvg opened this issue Dec 10, 2014 · 0 comments

Comments

@borisvg
Copy link

borisvg commented Dec 10, 2014

I seem to get a timeout everytime the script tries to get the references - I saw #35 which might be similar, but I have tried to change ads mirror and playing with my ssh variables so that I could check if they created the hickup - But nothing seems to change. I have recently updated to OS 10.9 but don't know if it is related. Here is the debug report:

csh:~/Downloads/ads_bibdesk-master> adsbibdesk.py -d 2005ApJ...625..539B
Starting ADS to BibDesk
ADS to BibDesk version 3.2.0
Python: 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
process_token found article token 2005ApJ...625..539B
ADSConnector found bibcode/DOI 2005ApJ...625..539B
ADSHTMLParser found links: {u'ar': u'http://ads.astro.puc.cl/cgi-bin/nph-data_query?bibcode=2005ApJ...625..539B&link_type=AR&db_key=AST',
u'article': u'http://ads.astro.puc.cl/cgi-bin/nph-data_query?bibcode=2005ApJ...625..539B&link_type=ARTICLE&db_key=AST&high=',
u'bibtex': u'http://ads.astro.puc.cl/cgi-bin/nph-bib_query?bibcode=2005ApJ...625..539B&data_type=BIBTEX&db_key=AST&nocookieset=1',
u'citations': u'http://ads.astro.puc.cl/cgi-bin/nph-data_query?bibcode=2005ApJ...625..539B&link_type=CITATIONS&db_key=AST',
u'custom': u'http://ads.astro.puc.cl/cgi-bin/nph-abs_connect?bibcode=2005ApJ...625..539B&data_type=Custom&format=%5c%5cbibitem%5b%25%5c2m%25%28y%29%5d%25%7bR%7d%20%25%5c5.3l%20%25%5cY,%25%5cj,%25%5cV,%25%5cp%5cn&return_fmt=LONG&db_key=AST&nocookieset=1',
u'ejournal': u'http://ads.astro.puc.cl/cgi-bin/nph-data_query?bibcode=2005ApJ...625..539B&link_type=EJOURNAL&db_key=AST&high=',
u'preprint': u'http://ads.astro.puc.cl/cgi-bin/nph-data_query?bibcode=2005ApJ...625..539B&link_type=PREPRINT&db_key=AST',
u'refcit': u'http://ads.astro.puc.cl/cgi-bin/nph-data_query?bibcode=2005ApJ...625..539B&link_type=REFCIT&db_key=AST&high=',
u'references': u'http://ads.astro.puc.cl/cgi-bin/nph-data_query?bibcode=2005ApJ...625..539B&link_type=REFERENCES&db_key=AST&high='}
Traceback (most recent call last):
File "adsbibdesk.py", line 1458, in
main()
File "adsbibdesk.py", line 189, in main
process_articles(args, prefs)
File "adsbibdesk.py", line 209, in process_articles
process_token(article_token, prefs, bibdesk)
File "adsbibdesk.py", line 273, in process_token
pdf = ads_parser.get_pdf()
File "adsbibdesk.py", line 1196, in get_pdf
resolved_url = get_redirect(url)
File "adsbibdesk.py", line 621, in get_redirect
out = urllib2.urlopen(url)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1214, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1187, in do_open
r = h.getresponse(buffering=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1045, in getresponse
response.begin()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 409, in begin
version, status, reason = self._read_status()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 365, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 476, in readline
data = self._sock.recv(self._rbufsize)
socket.timeout: timed out

Any help with this would be much appreciated - I find this tool invaluable - thanks for the development work.

Boris

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant