message: "Server Error", code: 500, type: "general_unknown", version: "0.10.37"} code : 500message
- 0
- Databases
- Web

HI, I was creating the new entry for the database in nextjs with databases.createDocument and getting this error when I was adding.
Code Reference
export const createIdea = async (idea: string, type: string, createdBy: string) => {
const { databases } = useAppwrite();
try {
const { $id } = await databases.createDocument(
DATABASE_ID, IDEAS_COLLECTION_ID, ID.unique(), {
idea,
type,
createdBy,
}
);
// create the user interaction for the user who created the idea
await createUserInteraction(createdBy, "created", $id);
return $id;
} catch (error) {
console.log(error);
}
}

Probably related to this https://discord.com/channels/564160730845151244/1102936099745177700/1117863004097228880

Thank you.
Recommended threads
- CSV Not Importing
We don’t seem to having any luck importing a simple .csv file. The import function acts like it’s working but no data imports or is shown in the collection The...
- Appwrite Cloud Custom Domains Issue
I’m trying to configure my custom domain api.kondri.lt (CNAME pointing to appwrite.network., also tried fra.cloud.appwrite.io with no luck ) but encountering a ...
- Persistent 401 Unauthorized on all authe...
Hello, I'm facing a critical 401 Unauthorized error on my admin panel app and have exhausted all debugging options. The Problem: When my React app on localhos...
