Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ› Bug Report: Server Error code 500 when create new document #177

Closed
2 tasks done
samderlust opened this issue Sep 24, 2023 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@samderlust
Copy link

samderlust commented Sep 24, 2023

πŸ‘Ÿ Reproduction steps

When I try to create new document it throw an error with code 500
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(),
          );

πŸ‘ Expected behavior

create new document

πŸ‘Ž Actual Behavior

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β”‚ β›” }<…>

🎲 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?

  • I checked and didn't find similar issue

🏒 Have you read the Code of Conduct?

@samderlust samderlust added the bug Something isn't working label Sep 24, 2023
@samderlust
Copy link
Author

I found out that I send a wrong attribute to the server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant