Back

[SOLVED] not found issue

  • 0
  • Self Hosted
dammy
18 Mar, 2023, 14:28
TL;DR
User is experiencing a "not found" issue related to updating phone details in their code. Solution: The user needs to make sure to call the phone update function after creating a session. They should create a new post with their full code and error for further assistance. Additionally, the user mentioned that creating a phone session creates a new account. They should consider creating a separate post to address this issue. A potential solution for immediate phone detail update after account creation is to make sure to call the update phone function immediately after creating the account. In the provided code snippet, it seems the user is calling the `create` function before the `create
Drake
18 Mar, 2023, 14:33

The containers may not be running properly. Make sure they're started by running docker compose up -d

dammy
18 Mar, 2023, 14:36

[SOLVED} not found issue

dammy
18 Mar, 2023, 14:36

I appreciate @Steven Enjoy your day

dammy
18 Mar, 2023, 14:51

@Steven

how do I update phone details immediately account is created?

I did this,

TypeScript
Future submitDetails = account.create(
      userId: ID.unique(),
      email: submitEmail,
      password: submitPassword,
      name: submitName,
    );
    submitDetails.then((response) {
      return response;
    }).catchError((error) {
      return "An error occured";
    });

Future phoneNumber = account.createPhoneSession(
      userId: ID.unique(),
      phone: submitPhone,
    );
    phoneNumber.then((response) {
      return response;
    }).catchError((error) {
      return "An error occured";
    });
}

Only account was created, no phone details was present

Drake
18 Mar, 2023, 14:54

Best to create another post.

But one problem is create phone session creates a new account

dammy
18 Mar, 2023, 14:54

I will consider creating new post next time @Steven

dammy
18 Mar, 2023, 14:55

how do I update phone immediately?

dammy
18 Mar, 2023, 14:55

updatePhoneSession?

Drake
18 Mar, 2023, 14:56

Update phone. However you need to make sure to call it after creating a session

Drake
18 Mar, 2023, 14:58

[SOLVED] not found issue

dammy
18 Mar, 2023, 15:00

it did not work, I guess am missing something

TypeScript
      phone: submitPhone,
      password: submitPassword,
    );
    phoneNumber.then((response) {
      return response;
    }).catchError((error) {
      return "An error occured";
    });```
Drake
18 Mar, 2023, 15:23

Best to create a new post with your full code and error

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