Closed samderlust closed 1 year ago
When I try to create new document it throw an error with code 500 appwrite: ^11.0.0
appwrite: ^11.0.0
flutter version
Flutter 3.13.4 • channel stable • https://github.com/flutter/flutter.git Framework • revision 367f9ea16b (11 days ago) • 2023-09-12 23:27:53 -0500 Engine • revision 9064459a8b Tools • Dart 3.1.2 • DevTools 2.25.0
final response = await _ref.read(appWriteDBProvider).createDocument( databaseId: 'xx', collectionId: 'xxx', documentId: ID.unique(), data: payload.toJson(), );
create new document
flutter: \^[[38;5;196m│ ⛔ {<…> flutter: \^[[38;5;196m│ ⛔ "message": "Server Error",<…> flutter: \^[[38;5;196m│ ⛔ "code": 500,<…> flutter: \^[[38;5;196m│ ⛔ "type": "general_unknown",<…> flutter: \^[[38;5;196m│ ⛔ "version": "0.11.3"<…> flutter: \^[[38;5;196m│ ⛔ }<…>
Version 2.0.x
Linux
No response
I found out that I send a wrong attribute to the server
👟 Reproduction steps
When I try to create new document it throw an error with code 500
appwrite: ^11.0.0
flutter version
👍 Expected behavior
create new document
👎 Actual Behavior
🎲 Appwrite version
Version 2.0.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?