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

An error occurred while retrieving the patient details: SyntaxError: "undefined" is not valid JSON #6

Closed mohamed-abd-elkahlk closed 2 months ago

mohamed-abd-elkahlk commented 2 months ago

i received this error message when i try to make a query to appwrite i got no response always receive undefined

this the code

code

and i'm sure i have not miss type anything

image

can any one help me fixing this error

update: when i try to make a query with another atributes like email it return a data.

ssaintx commented 2 months ago

there is can be some issues with appwrite, try to delete attribute or collection and create it again. or you may also check a receiving data props. if the exported function is working well, theres receiving data may be invalid.

mohamed-abd-elkahlk commented 2 months ago

i try all above and it work some time and after that it brokes again

sujatagunale commented 2 months ago

@mohamed-abd-elkahlk, if it worked and then broke again, it could be an issue on the Appwrite side. Please raise an issue on their Discord channel.

Before that, do verify if you're passing right userId to the function and if the same id user is present in Appwrite DB