It seems to me that with recent versions of Flutter, using the "new" is no longer necessary. Anyway, I don't think that's the problem
I created an issue in the appwrite GitHub...
Hope that helps me..π
I think you should try a clean project, and you just implement what it takes to create a document, without a controller, etc...
Sure will try it and come back
Thanks for the help, I tried doing without using the model, and it works, it's really strange but whatever, it works...yaaayyy
Oh, so I guess it's not an Appwrite SDK issue :')
Sorry to disturb again, but the problem occurs again..ππ
The problem is on the document I'd generation on the server side...π
π€
That's to say ?
Yes
I mean, what's the problem on the server side?
It isn't showing anything, but I think the server is creating the same docid
Should I delete the collection and try recreating it..?
Will try and see
That's soo weird...
It works
This might have happened because I restarted the docker console that's why...never gonna do that...
Do you have a unique index on the collection?
Yes, it fails only when I create document on the client side
But I tried recreating the collection, it worked
The problem was probably the unique index
Yes
Recommended threads
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...