Hi everyone, I’m currently working on a backend with Appwrite and I’ve run into a persistent issue while trying to create a user using the users.create() method.
I keep getting the following error: Invalid 'phone' param: Phone number must start with a '+' and can have a maximum of fifteen digits.
Here’s what I’ve confirmed:
The phone number is in the correct format (+254111579473)
I’ve trimmed and validated the number in code
I also printed the character codes to verify there are no hidden characters
I’m using the Node.js SDK and Appwrite v1.6.2 (self-hosted)
My code looks like this:
const newUser = await users.create(sdk.ID.unique(), { email, password, phone: '+254111579473', name: username, });
Despite everything being valid, I keep getting the same error. Can anyone confirm if phone is supported in the users.create() method in this version? Or is there a workaround or update I should be aware of?
Any help would be really appreciated!
Thanks in advance.
Recommended threads
- Updating GitHub App access throws error
Steps to reproduce - 1. Have some private repos allowed on the install access 2. New Site/Func > Connect GitHub > see the side card saying `Missing a repo` > cl...
- Bug report: Race condition in Flutter SD...
Hi team, I've found an intermittent bug in the Flutter SDK (v20.3.0) when using `createOAuth2Session` on Android. **Symptoms** After `createOAuth2Session` re...
- New Build not visible on Domain
I pushed some new code to my Appwrite Site and the build succeeded and is shown as active. Yet, I can only see the new version of the site on Appwrite's provide...