usnistgov / SpectrumBrowser

ITL
12 stars 11 forks source link

If we do not have a configuration collection, the abort(500) does not seem to work any more #123

Closed jkubNTIA closed 9 years ago

jkubNTIA commented 9 years ago

If I do a db.configuration.remove({}) from mongoDB and then I try to load the spectrumbrowser page, the abort(500) does not seem to work any more & I get the following from the web server log window:

Log Message : URL = http://localhost:8000/spectrumbrowser/isAuthenticationRequired Please configure system Unexpected error: <class 'werkzeug.exceptions.InternalServerError'> (<class 'werkzeug.exceptions.InternalServerError'>, <InternalServerError '500: Internal Server Error'>, <traceback object at 0x7fcfdd768518>) Traceback (most recent call last): File "/home/jkub/Documents/SpectrumBrowser/flask/flaskr.py", line 648, in isAuthenticationRequired abort(500) File "/usr/local/lib/python2.7/dist-packages/werkzeug/exceptions.py", line 576, in call raise self.mapping[code](*args, **kwargs) InternalServerError: 500: Internal Server Error getFile()

ranganathanm commented 9 years ago

it appears to be working from the logs (see where it says InternalServerError:500) Not sure why this is reported as not working.

Run

python Config.py clean

ranganathanm commented 9 years ago

Julie did not close issues before she left the project. Hence, I am closing it as it works for me.