Back

React native error, please help me.

  • 1
  • Databases
  • React Native
  • Auth
summer river
11 Sep, 2024, 15:30

add into the auth module

TL;DR
The developer is experiencing an issue with signing up users in React Native. Another developer points out that the error occurs because 'account.get()' throws, thus the code doesn't reach line 62. The suggestion is to wrap it in a try-catch block. The original developer then tries making the suggested update. Later messages indicate that users are not being added correctly to the specified collection, even though errors are still occurring. The thread ends with the original developer mentioning a new error after modifying the signup form.
summer river
11 Sep, 2024, 15:32
summer river
11 Sep, 2024, 15:33

Are you still here?

Kenny
11 Sep, 2024, 15:35

So you are getting users added to your appwrite instance and not your users collection. Do you have permissions on your collection? Are people actually allowed to add to it?

summer river
11 Sep, 2024, 15:38
Kenny
11 Sep, 2024, 15:38

With those are you still getting the issue?

summer river
11 Sep, 2024, 15:39

yessssssssss

summer river
11 Sep, 2024, 15:39

not still , there were those from the beginning

Kenny
11 Sep, 2024, 15:40

What's in the signin function?

summer river
11 Sep, 2024, 15:40

I click sign up, and it run to auth module😅

summer river
11 Sep, 2024, 15:41

wait

summer river
11 Sep, 2024, 15:42
summer river
11 Sep, 2024, 15:42

this

Kenny
11 Sep, 2024, 15:43

account.get() throws, so it will never get to line 62. You'll need to add your create login in the catch of the try catch.

summer river
11 Sep, 2024, 15:46

I come back

summer river
11 Sep, 2024, 15:47

ok, let I see see

summer river
11 Sep, 2024, 15:47

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

summer river
11 Sep, 2024, 15:47

It seems so.

summer river
11 Sep, 2024, 15:48

It's my first time using this

summer river
11 Sep, 2024, 15:50

Let me change it and you'll see if it's right.

Kenny
11 Sep, 2024, 15:51

okie dokie

summer river
11 Sep, 2024, 15:52

let session = await account.get(); wrap this in the try catch ?

summer river
11 Sep, 2024, 15:55

I delete some code

summer river
11 Sep, 2024, 15:56

Maybe it's better this way.

summer river
11 Sep, 2024, 15:56
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