Created
February 22, 2018 23:23
-
-
Save xxott/64c3dd60e9343bf62271fb7b23c3e18c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2018-02-22 23:21:13,643] ERROR in app: Exception on /api/search [GET] | |
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app | |
response = self.full_dispatch_request() | |
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request | |
rv = self.handle_user_exception(e) | |
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception | |
reraise(exc_type, exc_value, tb) | |
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request | |
rv = self.dispatch_request() | |
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request | |
return self.view_functions[rule.endpoint](**req.view_args) | |
File "/opt/selfmarket/app/decorators.py", line 42, in decorated_view | |
return func(*args, **kwargs) | |
File "/opt/selfmarket/app/frontend/api.py", line 108, in api_search | |
db.session.commit() | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 157, in do | |
return getattr(self.registry(), name)(*args, **kwargs) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 874, in commit | |
self.transaction.commit() | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 461, in commit | |
self._prepare_impl() | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 441, in _prepare_impl | |
self.session.flush() | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2137, in flush | |
self._flush(objects) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2257, in _flush | |
transaction.rollback(_capture_exception=True) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__ | |
compat.reraise(exc_type, exc_value, exc_tb) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2221, in _flush | |
flush_context.execute() | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 389, in execute | |
rec.execute(self) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 548, in execute | |
uow | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj | |
mapper, table, insert) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 835, in _emit_insert_statements | |
execute(statement, params) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945, in execute | |
return meth(self, multiparams, params) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection | |
return connection._execute_clauseelement(self, multiparams, params) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement | |
compiled_sql, distilled_params | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context | |
context) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1393, in _handle_dbapi_exception | |
exc_info | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 202, in raise_from_cause | |
reraise(type(exception), exception, tb=exc_tb, cause=cause) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context | |
context) | |
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 469, in do_execute | |
cursor.execute(statement, parameters) | |
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 205, in execute | |
self.errorhandler(self, exc, value) | |
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler | |
raise errorclass, errorvalue | |
OperationalError: (_mysql_exceptions.OperationalError) (1366, "Incorrect integer value: 'dsadsads' for column 'search_query' at row 1") [SQL: u'INSERT INTO user_search_history (user_id, search_query, created_on) VALUES (%s, %s, %s)'] [parameters: (4456L, 'dsadsads', datetime.datetime(2018, 2, 22, 23, 21, 13, 641638))] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment