Open CJBLACK24 opened 2 weeks ago
POST /patients/669ce994002f41c19d96/register 200 in 5269ms
○ Compiling /patients/[userId]/new-appointment ...
✓ Compiled /patients/[userId]/new-appointment in 6.1s (3671 modules)
An error occurred while retrieving the patient details: SyntaxError: "undefined" is not valid JSON
at JSON.parse (
anything ?
hi, I was getting the same issue. The error is in the patient get server action. If you console log the patient data it is not fetching anything from the backend so instead of creating the appointment it is running the update appointment code for which it is asking for document Id. To resolve this you need to get the patient detail first. For this you need to update the node appwrite dependency to the latest version, it will solve the issue.
I am stuck in the New Appointment Form Page. When I was about to click Create New Appointment, I encountered this error: Missing required parameter: "documentId." pls thanks