Hi, I am new to Openemr. I have installed Openemr version 6.0.1 on top of xampp in Windows. I am unable to register new API client in OpenEMR. I am getting an error message - “Unexpected end of JSON input”.
This is the details of the request I am making:
Request URL: https://localhost/openemr/oauth2/default/registration
Request Method: POST
Content-Type: application/json
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36
Request Payload:
{application_type: “private”,…}
** application_type: “private”**
** client_name: “Test_App”**
** contacts: [“chiranth.kumar@ltts.com”]**
** initiate_login_uri: “https:// <openemr_url>/openemr/swagger/index.html”**
** jwks: “”**
** jwks_uri: “”**
** post_logout_redirect_uris: [""]**
** 0: “”**
** redirect_uris: [“https://<openemr_url>/openemr/swagger/oauth2-redirect.html”]**
** 0: “https://<openemr_url>/openemr/swagger/oauth2-redirect.html”**
** scope: “openid fhirUser online_access offline_access launch launch/patient api:oemr api:fhir api:port profile name address given_name family_name nickname phone phone_verified email email_verified site:default patient/AllergyIntolerance.read patient/CarePlan.read patient/CareTeam.read patient/Condition.read patient/Device.read patient/DiagnosticReport.read patient/DocumentReference.read patient/Encounter.read patient/Goal.read patient/Immunization.read patient/Location.read patient/Medication.read patient/MedicationRequest.read patient/Observation.read patient/Organization.read patient/Patient.read patient/Person.read patient/Practitioner.read patient/Procedure.read patient/Provenance.read user/AllergyIntolerance.read user/CarePlan.read user/CareTeam.read user/Condition.read user/Coverage.read user/Device.read user/DiagnosticReport.read user/DocumentReference.read user/Encounter.read user/Goal.read user/Immunization.read user/Location.read user/Medication.read user/MedicationRequest.read user/Observation.read user/Organization.read user/Organization.write user/Patient.read user/Patient.write user/Person.read user/Practitioner.read user/Practitioner.write user/PractitionerRole.read user/Procedure.read user/Provenance.read”**
** token_endpoint_auth_method: “client_secret_post”**.
There is no response received and got 500 (Internal Server Error), SyntaxError: Unexpected end of JSON input at register-app.php:89:39
Can you please help in resolving this issue.