RedHatEMEA / satools

18 stars 7 forks source link

I get the following error with sync-product-docs.py #3

Closed tenfourty closed 13 years ago

tenfourty commented 13 years ago

Retrieving http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Data_Services/5/pdf/Data_Services_Developer_Guide/JBoss_Enterprise_Data_Services-5-Data_Services_Developer_Guide-en-US.pdf... [*****_] 100% (425022)
Retrieving http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Data_Services/5/pdf/Data_Services_Getting_Started_Guide/JBoss_Enterprise_Data_Services-5-Data_Services_Getting_Started_Guide-en-US.pdf... [_****_] 100% (446070)
Traceback (most recent call last): File "./sync-product-docs.py", line 43, in common.retrieve(urlbase + url, path) File "/Volumes/Oyibo HDD/Media/Users/tenfourty/Documents/dev/github/satools/satools/common.py", line 186, in retrieve srcf = urllib2.urlopen(HeadRequest(url)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 400, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 513, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 438, in error return self._call_chain(_args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 521, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 403: Forbidden

seems like it can't handle a 403.

jim-minter commented 13 years ago

believe this is fixed, please pull, try again and update issue.

tenfourty commented 13 years ago

Yes, it's now working!

Thanks