Back

Error while trying to use custom domain to verify user email

  • 0
  • Android
  • Cloud
retr122
16 Jun, 2024, 06:37

Hello! I tried to use my connected custom domain to setup user verify email link but received an error. In my Android code, i send request to verification: ``` account.createVerification("https://appwrite.quizop.net", new CoroutineCallback<>((result3, error3) -> { if (error3 != null) { Log.e("ErrorMessage", error3.getMessage()); ExceptionHandler handler = new ExceptionHandler(SetupActivity.this.getApplicationContext()); runOnUiThread(new Runnable() { @Override public void run() { handler.showToast(error3.getMessage()); } }); error3.printStackTrace(); return;

TypeScript
                                            }

                                            runOnUiThread(new Runnable() {
                                                public void run() {
                                                    setContentView(R.layout.setup_email_verification);
                                                }
                                            });
                                            Log.e("User", currentUser.getPrefs().getData().toString());


                                        }));``` But received this error ```io.appwrite.exceptions.AppwriteException: Invalid `url` param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io``` I added my domain in settings. Why i received error?
TL;DR
Developers encountered an error when trying to use a custom domain for user email verification. The error message suggests the URL host must be one of the specified options like localhost or appwrite.io, even though the custom domain was added in settings.
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