Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need 404 json for API pages #156

Open
abkfenris opened this issue Jun 3, 2017 · 0 comments
Open

Need 404 json for API pages #156

abkfenris opened this issue Jun 3, 2017 · 0 comments

Comments

@abkfenris
Copy link
Owner

https://sentry.io/alex-kerney/riverflows-docker/issues/286398871/

NotFound: 404: Not Found
(1 additional frame(s) were not displayed)
...
  File "flask_debugtoolbar/__init__.py", line 125, in dispatch_request
    return view_func(**req.view_args)
  File "python3.6/cProfile.py", line 109, in runcall
    return func(*args, **kw)
  File "app/api_0_1/samples.py", line 106, in get_sample
    sample = Sample.query.get_or_404(sid)
  File "flask_sqlalchemy/__init__.py", line 422, in get_or_404
    abort(404)
  File "werkzeug/exceptions.py", line 646, in __call__
    raise self.mapping[code](*args, **kwargs)

TypeError: Object of type 'NotFound' is not JSON serializable
(9 additional frame(s) were not displayed)
...
  File "app/api_0_1/errors.py", line 29, in not_found
    response = jsonify({'error': 'not found', 'message': message})

TypeError: Object of type 'NotFound' is not JSON serializable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant