tactlabs / error-archive

All issues related to tact and tact labs work
0 stars 0 forks source link

2 #250

Open rajacsp opened 4 years ago

rajacsp commented 4 years ago
2019-08-17 20:23:05 Exception on /user/tokens/1 [GET]
Traceback (most recent call last):
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3275, in one
    ret = self.one_or_none()
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3253, in one_or_none
    "Multiple rows were found for one_or_none()"
sqlalchemy.orm.exc.MultipleResultsFound: Multiple rows were found for one_or_none()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
    raise value
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/Users/rj/projects/tact-api-2/rest_api/user_controller.py", line 144, in get_user_tokens_by_id_api
    user_details = uss.get_user_tokens_by_id(id)
  File "/Users/rj/projects/tact-api-2/services/user_service.py", line 174, in get_user_tokens_by_id
    token_list = session.query(TokenHistory).filter_by(userid = c_id).one()
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3278, in one
    "Multiple rows were found for one()"
sqlalchemy.orm.exc.MultipleResultsFound: Multiple rows were found for one()
2019-08-17 20:23:05 127.0.0.1 - - [17/Aug/2019 20:23:05] "GET /user/tokens/1 HTTP/1.1" 500 -