chrisguilbeau / taproot

Tool to study words in the Bible
MIT License
0 stars 0 forks source link

Omnibox broken #17

Open jscharbach opened 10 years ago

jscharbach commented 10 years ago

Any input (word or verse) yields:

pymysql.err.OperationalError OperationalError: (2006, "MySQL server has gone away (error(32, 'Broken pipe'))")

Traceback (most recent call last) This is the Copy/Paste friendly version of the traceback. You can also paste this traceback into a gist:
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1836, in call return self.wsgi_app(environ, start_response) File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint File "/root/taproot/app.py", line 33, in router if is_word(text): File "/root/taproot/model.py", line 99, in is_word return bool(get_rows(sql, params)[0][0]) File "/root/taproot/model.py", line 10, in get_rows cursor.execute(sql, params) File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.6.2-py2.7.egg/pymysql/cursors.py", line 132, in execute result = self._query(query) File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.6.2-py2.7.egg/pymysql/cursors.py", line 271, in _query conn.query(q) File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.6.2-py2.7.egg/pymysql/connections.py", line 725, in query self._execute_command(COM_QUERY, sql) File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.6.2-py2.7.egg/pymysql/connections.py", line 888, in _execute_command self._write_bytes(prelude + sql[:chunk_size-1]) File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.6.2-py2.7.egg/pymysql/connections.py", line 848, in _write_bytes raise OperationalError(2006, "MySQL server has gone away (%r)" % (e,)) OperationalError: (2006, "MySQL server has gone away (error(32, 'Broken pipe'))") The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

dump() shows all variables in the frame dump(obj) dumps all that's known about the object Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.