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
- Endless certificate generation cycle
Hello, when I try to add the subdomain stats.hedgehog-rp.ru, I get an infinite loop while the certificate is being generated. There are no problems with adding ...
- Realtime not working for some tables
Hi, I've got an issue where I can setup a realtime connection to listen to some tables, but some not all. I have two tables `history` and `users`. Both can be ...
- Returned columns when Query.select is us...
Hello, I am noticing that whatever i put in Query.select, the returned data will always contain the following fields ` "total": 1, "rows": [ { ...