Back

Am trying to use a function for handling the email verification but failed

  • 0
  • Flutter
  • Functions
  • Auth
gagan
3 Aug, 2024, 06:47

I had successfully created the function and added a domain and it got linked to it and it was callable from outside, But for email verification i created that function with custom domain, where the custom domain is email.v2.server.twillit.in (consider) and appwrite domain v2.server.twillit.in. In flutter App when am trying to add the URL for account.createVerification(url:email.v2.server.twillit.in) it throwed an error as like below, how to fix this please Help me. [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: AppwriteException: general_argument_invalid, Invalid url param: URL host must be one of: localhost, v2.server.twillit.in (400)

TL;DR
Developers created a function for email verification with a custom domain, but there's an error when trying to use the function in Flutter. The error is due to the `url` parameter requiring a specific format. To fix this, ensure that the `URL host` in the `url` parameter matches one of the allowed hosts (e.g., localhost or v2.server.twillit.in). Update the `url` parameter with the correct host to resolve the 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