nyxcharon / vault-ui

A webapp for working with Hashicorp's Vault https://github.com/hashicorp/vault
GNU General Public License v3.0
140 stars 22 forks source link

Traceback when accessing a non existing URL #37

Open rptxcosmo opened 7 years ago

rptxcosmo commented 7 years ago

When accessing a non existing URL the following traceback occurs : Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2000, in __call__ return self.wsgi_app(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1991, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1567, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1988, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1641, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1544, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1639, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1625, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/opt/vault-ui/decorators.py", line 13, in decorated_function return func(*args, **kwargs) File "/opt/vault-ui/app.py", line 86, in read_secret return render_template('secret.html', path=path, secret=list_secret(session['vault_token'], path)) File "/opt/vault-ui/vault.py", line 109, in list_secret return client.read(path)['data'] TypeError: 'NoneType' object has no attribute '__getitem__'