Back

get userid

  • 0
  • Databases
  • Web
  • Storage
Biswajitchanda
25 Dec, 2023, 12:11

async addProduct(prodData) { try { return await this.databases.createDocument( conf.appwriteDatabaseId, conf.appwriteCollectionId, ID.unique(), prodData ); } catch (error) { console.log("databaeService::addproduct::error: " + error); } } getting internal server error please help me.

TL;DR
The user is facing an internal server error while trying to insert prodData. The issue might be with reading the type and value of the data. Check for any case-sensitive errors. The solution is to observe the code carefully and ensure that the data is being inserted correctly.
Mosh Ontong
25 Dec, 2023, 13:19

The error could be on how you insert the prodData, there might be an issue on reading the type and value itself. Observe it properly especially the case sensitive

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more