
I hope you're doing well. I'm reaching out because I'm having trouble creating a new document through the Appwrite API, and I'm consistently getting a server error.
Server error 500
**Technology **
Html, css ,React Js

are you using cloud or self hosting?

Please provide the project id, code or request payload, and info about the collection

ProjectId : 6586a26b0f284c8ab1ad
Code : const newPost = await databases.createDocument(
appwriteConfig.databaseId,
appwriteConfig.postCollectionId,
ID.unique(),
{
creator: post.userId,
caption: post.caption,
imageUrl: fileUrl,
imageId: uploadedFile.$id,
location: post.location,
tags: tags,
}
);

Collection Info

Are you still getting this error?

What tutorial are you following?

Please share the attributes on the posts collection

Yes,



these are all the attributes?

what's the exact error now?

yes

same server error 500

Would you please check the network tab if the browser dev tools and share the payload of the request?

Also, make sure the user has the relevant permissions to all related collections
Recommended threads
- my database attribute stuck in processin...
when i created attributes in collection 3 of those attributes become "processing", and they are not updating, the worst thing is that i cant even delete them s...
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
- Forever Processing Issue
I encountered an issue when creating attributes in the collections . if you create an attribute of type string for example and choose a size of 200 or 250 or a...
