tactlabs / error-archive

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

2 #278

Open rajacsp opened 4 years ago

rajacsp commented 4 years ago
INFO:sqlalchemy.engine.base.Engine:()
ERROR:flask.app:Exception on /api/li_link/get/all [GET]
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/emyotab-req-collector/rest_api/li_link_controller.py", line 96, in get_all_li_links
    return success_json(result_json)
  File "/Users/rj/projects/emyotab-req-collector/rest_api/response_utils.py", line 11, in success_json
    content = json.dumps(data)
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/json/encoder.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type 'datetime' is not JSON serializable
INFO:werkzeug:127.0.0.1 - - [09/Aug/2019 18:02:22] "GET /api/li_link/get/all HTTP/1.1" 500 -