BiswajitchandaOriginal post
Rank 1: Thread
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.
Summary
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.