Back

Document not being created

  • 1
  • Flutter
XaFigg
13 Aug, 2023, 16:04

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

TL;DR
User experiences an issue with creating a document. Trying to recreate the collection works, but problem persists when creating document on the client side. It is suggested to check for a unique index on the collection. Restarting the docker console may have caused the issue. Deleting and recreating the collection is considered. There may be a problem with document ID generation on the server side. The issue occurs again, but it is determined not to be an Appwrite SDK issue. Creating a document without using the model works. User suggests trying a clean project. User creates an issue in the Appwrite GitHub. The use of "new" may no longer be
Pavan
13 Aug, 2023, 16:05

I created an issue in the appwrite GitHub...

Pavan
13 Aug, 2023, 16:05

Hope that helps me..😭

XaFigg
13 Aug, 2023, 16:06

I think you should try a clean project, and you just implement what it takes to create a document, without a controller, etc...

Pavan
13 Aug, 2023, 16:06

Sure will try it and come back

Pavan
13 Aug, 2023, 16:25

Thanks for the help, I tried doing without using the model, and it works, it's really strange but whatever, it works...yaaayyy

XaFigg
13 Aug, 2023, 16:27

Oh, so I guess it's not an Appwrite SDK issue :')

Pavan
13 Aug, 2023, 16:30

Sorry to disturb again, but the problem occurs again..😭😭

Pavan
13 Aug, 2023, 16:31
Pavan
13 Aug, 2023, 16:32

The problem is on the document I'd generation on the server side...😭

XaFigg
13 Aug, 2023, 16:33

πŸ€”

XaFigg
13 Aug, 2023, 16:33

That's to say ?

Pavan
13 Aug, 2023, 16:34

Yes

XaFigg
13 Aug, 2023, 16:35

I mean, what's the problem on the server side?

Pavan
13 Aug, 2023, 16:36

It isn't showing anything, but I think the server is creating the same docid

Pavan
13 Aug, 2023, 16:36

Should I delete the collection and try recreating it..?

Pavan
13 Aug, 2023, 16:36

Will try and see

Pavan
13 Aug, 2023, 16:40

That's soo weird...

Pavan
13 Aug, 2023, 16:40

It works

Pavan
13 Aug, 2023, 16:41

This might have happened because I restarted the docker console that's why...never gonna do that...

Drake
13 Aug, 2023, 21:29

Do you have a unique index on the collection?

Pavan
14 Aug, 2023, 01:58

Yes, it fails only when I create document on the client side

Pavan
14 Aug, 2023, 01:58

But I tried recreating the collection, it worked

Drake
14 Aug, 2023, 02:22

The problem was probably the unique index

Pavan
14 Aug, 2023, 02:24

Yes

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more