jayvdb created this task.
jayvdb claimed this task.
jayvdb added subscribers: jayvdb, valhallasw.
jayvdb added a project: pywikibot-core.
jayvdb changed Security from none to none.

TASK DESCRIPTION
  ```
  >>> http.fetch(uri='http://getstatuscode.com/301')
  Exception in thread Thread-1:
  Traceback (most recent call last):
    File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
      self.run()
    File "pywikibot/comms/threadedhttp.py", line 486, in run
      item.data = self.http.request(*item.args, **item.kwargs)
    File "pywikibot/comms/threadedhttp.py", line 254, in request
      uri, method, body, headers, response, content, max_redirects)
    File "pywikibot/comms/threadedhttp.py", line 273, in _follow_redirect
      response, content)
  RedirectMissingLocation: Redirected but the response is missing a Location: 
header.
  ```
  
  And the main thread doesnt return.
  
  This exception is thrown by threadedhttp, whereas threadedhttp normally 
returns the exception to be passed back to the main thread.

TASK DETAIL
  https://phabricator.wikimedia.org/T78123

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
<username>.

To: jayvdb
Cc: Aklapper, jayvdb, valhallasw, pywikipedia-bugs



_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to