Please can you explain this ?
?
Not sure why you mean
Where you getting the error?
In the browser?
Yes.
This is the error
Yeah that's right there is a missing parameter. When you are registering. It takes in the of the user registering it takes in four parameters that is the uniqueId, email, password and name. Therefore this implies that as you are calling the create method of the account api, you should pass in the name as follows: const user = await account.create("unique()", email, password, ""). And just to handle the promise on addition to that I added an await. This should get it done. I'll be awaiting any feedback.
This is the new error i got - AppwriteException: Missing required parameter: "email"
Send a screenshot of your code. And ensure that your signup form is supplying all the required arguments to the account creation api.
This is a copy of the updated code
async sendEmail(name, email, password) { try { const user = await account.create('unique()', email, password, ""); console.log(user); // Success } catch (error) { console.log(error); // Failure } }
Before making the create call to the account api could you please log to the console each of those values like the name, email and password and verify that they have values assigned to them.
I'll be awaiting your feedback
I have done that, they are working fine
See the screenshot above
Great. The pleasure is mine
But the appwrite create account API is not working
How?
This was what i did
async sendEmail() { try { // const user = await account.create("unique()", email, password, ""); console.log('Name:', this.name) console.log('Password:', this.password) console.log('Email:', this.email) } catch (error) { console.log(error); // Failure } }
Use this const user = await account.create("unique()", this.email, this.password, this.name) And give me feedback
Thanks! It worked π
I appreciate your time and response.
My pleasure
Alright
[SOLVED] AppwriteException: Missing required parameter: "password"
Recommended threads
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...
- 401 - Project not accessible in this reg...
Hi Appwrite team, Iβm experiencing a Cloud Console issue with my NYC region project. Problem: - Some Console pages return: β401 - Project is not accessible ...