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
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...
- Hi Appwrite Support Team,My project has ...
Details: Project ID: 69a69f6f00113ed0e8e4 Region: SFO (sfo.cloud.appwrite.io) Error Response: Affected: ALL endpoints — Functions, Databases, Storage, Health, ...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...