You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
500
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
ERROR ON SERVER
ERROR:app:Exception on /v1/anomaly_types [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask_cors/__init__.py", line 279, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
(**req.view_args)
File "/usr/local/lib/python2.7/dist-packages/flask_restless/views.py", line 157, in decorator
return func(*args, **kw)
File "/usr/local/lib/python2.7/dist-packages/mimerender.py", line 229, in wrapper
result = target(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flask/views.py", line 84, in view
return self.dispatch_request(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flask/views.py", line 149, in dispatch_request
return meth(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flask_restless/views.py", line 189, in wrapped
return func(*args, **kw)
File "/usr/local/lib/python2.7/dist-packages/flask_restless/views.py", line 1239, in get
return self._search()
File "/usr/local/lib/python2.7/dist-packages/flask_restless/views.py", line 1164, in _search
result = strings_to_dates(query_model, to_convert)
File "/usr/local/lib/python2.7/dist-packages/flask_restless/helpers.py", line 563, in strings_to_dates
if is_date_field(model, fieldname) and value is not None:
File "/usr/local/lib/python2.7/dist-packages/flask_restless/helpers.py", line 185, in is_date_field
fieldtype = get_field_type(model, fieldname)
File "/usr/local/lib/python2.7/dist-packages/flask_restless/helpers.py", line 163, in get_field_type
field = getattr(model, fieldname)
AttributeError: type object 'AnomalyType' has no attribute 'status'
Perhaps a check before filtering to confirm that the filters are real columns before proceeding and a return such as:
response.status_code : 400
response.text : {"error" : " is not a validate column to filter"}
for example?
The text was updated successfully, but these errors were encountered:
When attemping to filter a resource using a column that doesn't exist server returns error 500 rather than a useful message.
example:
RESOURCES
QUERY
RESPONSE
ERROR ON SERVER
Perhaps a check before filtering to confirm that the filters are real columns before proceeding and a return such as:
response.status_code : 400
response.text : {"error" : " is not a validate column to filter"}
for example?
The text was updated successfully, but these errors were encountered: