Api call for /process giving error #21
MadineniGunavardhan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @w-is-h
On triggering api call for /api/process
we got error "object of type generator is not JSON serializable" , but on triggering /api/process_bulk it is working fine
changing this line of code in https://github.com/CogStack/MedCATservice/tree/master/medcat_service/api/api.py file
return Response(response=json.dumps(response), status=200, mimetype="application/json")
to
return Response(response=json.dumps(response, iterable_as_array=True), status=200, mimetype="application/json")
worked
Thanks
Beta Was this translation helpful? Give feedback.
All reactions