Skip to content
Back

[SOLVED] "Domain verification for the requested domain has failed." for a custom domain

  • 0
  • Web
骨头
16 Mar, 2023, 21:34

my appwrite instance is hosted at "aw.<myhostname>.com", when I try to define my custom domain as "aw.<myhostname>.com" it fails with a PATCH request which returns a 401 and a json with "Domain verification for the requested domain has failed.", my enviroment variables for "_APP_DOMAIN" and "_APP_DOMAIN_TARGET" are the same, so I am really unsure what the problem could be, could anyone please help me?

TL;DR
User is experiencing an issue with domain verification for a custom domain in Appwrite. However, the issue has been resolved by realizing that only one main domain is required and the use of a custom domain is unnecessary. Solution: Only one main domain is needed, no custom domain required.
Drake
16 Mar, 2023, 21:37

How many domains do you need for Appwrite?

骨头
16 Mar, 2023, 21:37

only one

骨头
16 Mar, 2023, 21:38

thank you very much for your answer btw! I have been slamming my head against the wall for a bit over this problem

Drake
16 Mar, 2023, 21:38

Then you don't need to create a custom domain.

骨头
16 Mar, 2023, 21:39

I thought so but the reason I was doing this was to avoid a warning I get at the web console when my site interacts with appwrite

骨头
16 Mar, 2023, 21:39

the warning being "Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint."

骨头
16 Mar, 2023, 21:39

I am unsure what that means or how to make it go away

Drake
16 Mar, 2023, 21:41
骨头
16 Mar, 2023, 21:42

the docs suggest me to use a custom domain, should i use one or not?

Drake
16 Mar, 2023, 21:42

yes, but please make sure to read all the information thoroughly

骨头
16 Mar, 2023, 21:44

appwrite is hosted on the subdomain "aw.<myhostname>.com" and my app is hosted at "<myhostname>.com", is that not enough to make the error go away?

Drake
16 Mar, 2023, 21:44

In this case, you shouldn't need a custom domain then

Drake
16 Mar, 2023, 21:45

Some questions:

  1. Do you have a reverse proxy in front of Appwrite?
  2. Are you connecting to Appwrite using https?
  3. Do you have a valid SSL certificate?
骨头
16 Mar, 2023, 21:46
  1. no
  2. yes
  3. yes
Drake
16 Mar, 2023, 21:47

You shouldn't see the warning then 🧐

骨头
16 Mar, 2023, 21:48

If it's any use, the site is hosted in digital ocean as a webapp, which does the SSL part oob, while appwrite is hosted on a droplet

Drake
16 Mar, 2023, 21:50

Would you be able to DM me the URL for your app?

bharath
20 Mar, 2023, 14:59

@骨头 does your issue solved

Drake
20 Mar, 2023, 15:51

Yes, the issue was resolved. There was no custom domain needed since only 1 main domain was required.

Drake
20 Mar, 2023, 15:51

[SOLVED] "Domain verification for the requested domain has failed." for a custom domain

bharath
21 Mar, 2023, 22:27

@Steven how to add one custom domain

Drake
21 Mar, 2023, 22:36

if you need help, please create a new post in <#1072905050399191082>

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