code": "org.openmrs.module.webservices.rest.web.ConversionUtil:409" for patient search.

Hi, I have been working on setting up a patient search functionality as part of my module and am getting this error-code while testing on postman.

“message”: “[converting class org.openmrs.Patient to org.openmrs.module.webservices.rest.web.representation.NamedRepresentation@519aa9f2]” code": “org.openmrs.module.webservices.rest.web.ConversionUtil:409”

I have added the needed authentication and am using the url http://localhost:8080/openmrs/ws/rest/v1/patient?q=Sarah&v=default=&limit=1.

I’m not sure what I am doing wrong and would appreciate any help. Thank you.

Share the server side log via pastebin.com

Also mention the version of openmrs platform and webserviesrest module that you are running.

I’m running OpenMRS version 2.3.2 Build 437b7f and REST ws module 2.29.0.b675eb. Here’s the server log, Server log - Pastebin.com .

It seems that the other calls work fine like the list users and get session api calls but this search for patient isn’t.

Use this:

http://localhost:8080/openmrs/ws/rest/v1/patient?q=Sarah&limit=1

Thank you @dkayiwa . It works now