Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled error in Deferred. #344

Open
cheako opened this issue Oct 8, 2017 · 3 comments
Open

Unhandled error in Deferred. #344

cheako opened this issue Oct 8, 2017 · 3 comments

Comments

@cheako
Copy link

cheako commented Oct 8, 2017

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'
@evilaliv3
Copy link
Contributor

@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

@cheako
Copy link
Author

cheako commented Oct 8, 2017

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
Copy link
Author

cheako commented Oct 10, 2017

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

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

No branches or pull requests

2 participants