Closed M0315G closed 3 years ago
Hard to guess ... Can you provide more details? Have you changes anything in the code? How are you running the project? Have you applied the database migration?
Hard to guess ... Can you provide more details? Have you changes anything in the code? How are you running the project? Have you applied the database migration?
There was some error in the database. I viewed the file and it lacked some attributes. Making the migrations again worked.
Thanks
While running the predict View on the URL: http://127.0.0.1:8000/api/v1/income_classifier/predict, I'm getting the following error:
Request Method: POST Request URL: http://127.0.0.1:8000/api/v1/income_classifier/predict Django version: 3.1.4
Exception Type: | FieldError Exception Value: | Cannot resolve keyword 'status' into field. Choices are: code, created_at, description, id, mlalgorithmstatus, mlrequest, name, owner, parent_endpoint, parent_endpoint_id, version
Specifically, it's showing an error at the line:
algs = MLAlgorithm.objects.filter(parent_endpoint__name = endpoint_name, status__status = algorithm_status, status__active=True)
of the below predict code according to the stack trace. Let me know if you require the full stack trace to look at.The code for the Predict View is as follow:
`class PredictView(views.APIView): def post(self, request, endpoint_name, format=None):
I'm stuck at it since a day, would be great if you could help me out. Thanks