My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 46: dumpgenerator should follow redirects
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  nemow...@gmail.com
Cc:  emi...@gmail.com

Blocked on:
issue 104


Sign in to add a comment
 
Reported by nemow...@gmail.com, Apr 8, 2012
http://controls.engin.umich.edu/wiki/api.php (taken from the new list of 7000 wikis) redirects to HTTPS and I get

Checking api.php...
api.php is OK
Traceback (most recent call last):
  File "dumpgenerator.py", line 1029, in <module>
    main()
  File "dumpgenerator.py", line 838, in main
    config, other = getParameters(params=params)
  File "dumpgenerator.py", line 795, in getParameters
    if checkIndexphp(config['index']):
  File "dumpgenerator.py", line 818, in checkIndexphp
    f = urllib2.urlopen(req)
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 400, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 432, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 598, in http_error_302
    new = self.redirect_request(req, fp, code, msg, headers, newurl)
  File "/usr/lib/python2.7/urllib2.py", line 559, in redirect_request
    raise HTTPError(req.get_full_url(), code, msg, headers, fp)
urllib2.HTTPError: HTTP Error 307: Temporary Redirect

Nov 5, 2013
#1 nemow...@gmail.com
Still true:

Checking api.php... http://controls.engin.umich.edu/wiki/api.php
api.php is OK
Traceback (most recent call last):
  File "dumpgenerator.py", line 1196, in <module>
    main()
  File "dumpgenerator.py", line 1153, in main
    config, other = getParameters(params=params)
  File "dumpgenerator.py", line 917, in getParameters
    if checkIndexphp(config['index']):
  File "dumpgenerator.py", line 943, in checkIndexphp
    f = urllib2.urlopen(req)
  File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.6/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.6/urllib2.py", line 429, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 584, in http_error_302
    new = self.redirect_request(req, fp, code, msg, headers, newurl)
  File "/usr/lib/python2.6/urllib2.py", line 556, in redirect_request
    raise HTTPError(req.get_full_url(), code, msg, headers, fp)
urllib2.HTTPError: HTTP Error 307: Temporary Redirect
Feb 26, 2014
#3 nemow...@gmail.com
(No comment was entered for this change.)
Blockedon: wikiteam:104
Sign in to add a comment

Powered by Google Project Hosting