Skip to content
Back

Account createRecovery AppwriteException: general_argument_invalid

  • 0
  • Flutter
  • Auth
  • Cloud
Marco Napoli
15 Jan, 2025, 22:51

In my Flutter application I am calling the following code but it gives the following error:

TypeScript
await _account.createRecovery(
  email: email,
  url: 'https://email.mydomainname.com/reset-password',
);

Error:

TypeScript
sendPasswordResetEmail Error: AppwriteException: general_argument_invalid, Invalid `url` param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io, ...

Is there a place that we need to enter our domain name email.mydomainname.com to reset the password?

Thanks

TL;DR
Error is due to an invalid URL host. The URL used for password reset must be one of the specified hosts. Make sure to set the URL to one of the allowed hosts like localhost, cloud.appwrite.io, or appwrite.io. Update the URL to a valid host to resolve the issue.
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