adrianhajdin / healthcare

Build a healthcare platform that streamlines patient registration, appointment scheduling, and medical records, and learn to implement complex forms and SMS notifications.
https://jsmastery.pro
1.81k stars 432 forks source link

Nothing happening when clicking on SubmitAppointment button. #25

Open shashankxrm opened 1 month ago

shashankxrm commented 1 month ago

An error occurred while retrieving the patient details: SyntaxError: "undefined" is not valid JSON at JSON.parse (<anonymous>) at parseStringify (webpack-internal:///(rsc)/./lib/utils.ts:17:38) at $$ACTION_3 (webpack-internal:///(rsc)/./lib/actions/patient.actions.ts:84:70) at async NewAppointment (webpack-internal:///(rsc)/./app/patients/[userId]/new-appointment/page.tsx:15:21) GET /patients/66900f9400015cd49149/new-appointment 200 in 437ms GET /favicon.ico 500 in 23ms An error occurred while scheduling an appointment: AppwriteException: Missing required parameter: "documentId" at Databases.updateDocument (webpack-internal:///(action-browser)/./node_modules/node-appwrite/dist/services/databases.mjs:1695:13) at $$ACTION_3 ### (webpack-internal:///(action-browser)/./lib/actions/appointment.actions.ts:110:98)

Its saying that "documentId" parameter is missing

Sageikot001 commented 1 month ago

Did you add th document Id when you were supposed to though?

moshudougee commented 1 month ago

Just downgrade node-appwrite to version 12.0.1.

Troy2727 commented 1 month ago

I have the same issues when i clicking on Submit Appointment button. nothing happened at all this a Screenshot screencapture-localhost-3000-2024-08-05-20_19_56

Sageikot001 commented 1 month ago

I have the same issues when i clicking on Submit Appointment button. nothing happened at all this a Screenshot screencapture-localhost-3000-2024-08-05-20_19_56

This on the register page though?