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

No attribute found "UserId" #19

Open yashdargude opened 2 months ago

yashdargude commented 2 months ago

while register from new mail it throws error that userId is not defined? do help

An error occurred while retrieving the patient details: AppwriteException [Error]: Invalid query: Attribute not found in schema: userId at Client.call (webpack-internal:///(rsc)/./node_modules/node-appwrite/lib/client.js:206:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Databases.listDocuments (webpack-internal:///(rsc)/./node_modules/node-appwrite/lib/services/databases.js:1658:16) at async $$ACTION_3 (webpack-internal:///(rsc)/./lib/actions/patient.actions.ts:80:26) at async Register (webpack-internal:///(rsc)/./app/patients/[userId]/register/page.tsx:31:21) { code: 400, type: 'general_query_invalid', response: { message: 'Invalid query: Attribute not found in schema: userId', code: 400, type: 'general_query_invalid', version: '1.5.7' }

bharatpaliwal-169 commented 2 months ago

Hey @yashdargude kindly check you attributes in your database schema in appwrite. Remember to check the spell userId or UserID whatever you are using also check all other params there in schema. Once that you can follow a little bit further in the video and you will know the solution by yourself.

liandab commented 3 weeks ago

can i fix this issues?

adekmo commented 3 weeks ago

Hey @yashdargude kindly check you attributes in your database schema in appwrite. Remember to check the spell userId or UserID whatever you are using also check all other params there in schema. Once that you can follow a little bit further in the video and you will know the solution by yourself.

hei, i have this issue, Invalid document structure: Missing required attribute "user_id" image

image

how to fixed it? thnks