Im facing internal server error while the user signup process, but the user is successfully created
what's your project ID?
project ID: 654cd88c56d527c96c08
its happening while creating document on database
I was creating user details document while the user signup, sign up is working fine, but when creating the document Im getting the server error but sill the document aslo created along with user
so what's the code for the document creation?
// Store Customer details in database Future<models.Document> createCustomer(Map map, createdBy) async { final response = databases!.createDocument( databaseId: AppWriteConstants.dbId, collectionId: AppWriteConstants.customersCollectionId, documentId: createdBy, data: { "name": map["name"], "email": map["email"], "phone": map["phone"], "createdBy": map["createdBy"], }, );
return response;
}
500 error while creating document
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.
any relationships in this collection?
And you said this results in a 500 error?
yes 500 error but the document is created successfully
and it has realtionships with other collections
@Raja coming here from our conversation in the introduction channel. Since Steven is already helping you here, I will suggest you to wait a little longer for him to get back 😊
okay
The problem looks like it has to do with permissions on the relationships. What are the relationship attributes and what are the permissions on those collections
[SOLVED]500 error while creating document
Recommended threads
- Possible FRA servers down
Is it possible that the Frankfurt servers are currently down? There is no way to fetch any data. Given the few reports already in the <#564160731327758346> chat...
- Appwrite DNS nameservers return SERVFAIL...
My custom domain demomanasa.online (and all its subdomains) stopped resolving with ERR_NAME_NOT_RESOLVED for all visitors. I have traced the failure to Appwrite...
- Compatibility issue with Kakao OpenID Co...
**Context:** I am attempting to integrate **Kakao Login** (one of the largest social login providers in South Korea) into my Flutter application using Appwrite'...