Back

Documents are not added to collection

  • 0
  • React Native
  • Auth
Fayek Ahmed
29 Aug, 2024, 05:21

I'm trying to create an authentication system using appwrite. But when post data from my signup page it should add the newly created user to the corresponding collections. But unfortunately no data is being saved to my user collection. The appwrite config file's code is given below and also an additional code of function "submit" is given which triggers my application to post data to collection and proceed to next window.

TL;DR
Developers discussing an issue where documents are not added to the collection in an authentication system using Appwrite. They suggest modifying the package version or SDK version, and checking errors and permissions. A code snippet for the Appwrite config file and the "submit" function is provided for analysis.
D5
29 Aug, 2024, 05:25

Do you get some errors? What about permissions, are they set?

Fayek Ahmed
29 Aug, 2024, 05:29

These are the permissions

Fayek Ahmed
29 Aug, 2024, 05:35

these are the errors

D5
29 Aug, 2024, 05:35

That seems to be fine

D5
29 Aug, 2024, 05:35

Then that's the issue

D5
29 Aug, 2024, 05:35

Downgrade the SDK 1 major version

Fayek Ahmed
29 Aug, 2024, 05:36

how can I do that?

D5
29 Aug, 2024, 05:36

You're using react Native?

Fayek Ahmed
29 Aug, 2024, 05:36

yes

D5
29 Aug, 2024, 05:39

Then change the version of the package to 0.4.0. I think it can be done by either uninstalling the current one and installing the mentioned version or by modifying the package.json file

Fayek Ahmed
29 Aug, 2024, 05:45

are you talking about this?

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