Tor2web icon indicating copy to clipboard operation
Tor2web copied to clipboard

Unhandled error in Deferred.

Open cheako opened this issue 8 years ago • 3 comments

I have no idea what this means, if someone could explain it to me that would be helpful.

Thanks.

https://travis-ci.org/cheako/Tor2web-1/builds/285157269#L1476

Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line 1655, in lineReceived
    self.allHeadersReceived()
  File "/usr/local/lib/python2.7/dist-packages/tor2web-3.1.70-py2.7.egg/tor2web/t2w.py", line 1145, in allHeadersReceived
    self.requests[-1].requestReceived(self._command, self._path, self._version)
  File "/usr/local/lib/python2.7/dist-packages/tor2web-3.1.70-py2.7.egg/tor2web/t2w.py", line 524, in requestReceived
    self.process()
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1274, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
    result = g.send(result)
  File "/usr/local/lib/python2.7/dist-packages/tor2web-3.1.70-py2.7.egg/tor2web/t2w.py", line 928, in process
    self.sendError(404)
  File "/usr/local/lib/python2.7/dist-packages/tor2web-3.1.70-py2.7.egg/tor2web/t2w.py", line 644, in sendError
    return flattenString(self, templates[errortemplate]).addCallback(self.writeContent)
exceptions.KeyError: 'error_generic.tpl'

cheako avatar Oct 08 '17 18:10 cheako

@cheako: tor2web uses some files .tpl in order to build the html pages shown for example during errors.

this semplates are indexed in a dictionaty via their name, and it seems that the dictionary is not containing all the keys; maybe you do not have a directory 'templates' loaded on your system local to the tor2web instance? the files shuld be placed in /home/tor2web/templates

evilaliv3 avatar Oct 08 '17 18:10 evilaliv3

Thanks, I found the real path it's here: https://github.com/globaleaks/Tor2web/blob/master/tor2web/t2w.py#L1514

Though the error should indicate "File not found" and the path that the file should be.

cheako avatar Oct 08 '17 18:10 cheako

This can be closed, unless someone is going to change the errormsg to be more useful.

cheako avatar Oct 10 '17 01:10 cheako