Back

API Key generation error: Invalid Domain

  • 0
  • Self Hosted
gaurav_ch
11 Jul, 2023, 08:28

I am trying to generate an API key but I am constantly getting an error that the domain is invalid. Check the screenshots.

Chrome devtools is showing that domain key is being sent.

TL;DR
There is an issue with generating API keys for the domain "appwrite.gaurav.mobi." It seems that the domain is not considered valid by Appwrite. One possible solution is to try another domain name, preferably all lowercase. Refreshing the page may also resolve the issue temporarily. Further discussion and assistance from a user named Steven may be helpful. Alternatively, it is suggested to use a server-side migration tool. Screenshots in Chrome devtools show that the domain key is being sent.
gaurav_ch
11 Jul, 2023, 08:28

need help

D5
11 Jul, 2023, 08:34

The domain is invalid

D5
11 Jul, 2023, 08:34

What's your domain?

D5
11 Jul, 2023, 08:35

Seems like you don't have any domains?

D5
11 Jul, 2023, 08:35

Also, do you need API key for your app?

gaurav_ch
11 Jul, 2023, 08:42

appwrite.gaurav.mobi

gaurav_ch
11 Jul, 2023, 08:42

is the domain I have it running on

gaurav_ch
11 Jul, 2023, 08:42
gaurav_ch
11 Jul, 2023, 08:42

I need the api key for my

gaurav_ch
11 Jul, 2023, 08:42

server side migration tool.

D5
11 Jul, 2023, 08:43

Probably .mobi is not a generic domian

D5
11 Jul, 2023, 08:43

So probably Appwrite doesn't takes it as valid

gaurav_ch
11 Jul, 2023, 08:43

I have self hosted appwrite successfully

gaurav_ch
11 Jul, 2023, 08:43

and added data and what not.

gaurav_ch
11 Jul, 2023, 08:43

so it should not be a problem.

D5
11 Jul, 2023, 08:43

Wait for Steven check this and give you a possible solution

gaurav_ch
11 Jul, 2023, 08:44

ok

gaurav_ch
11 Jul, 2023, 10:06

just tried with another name all lowercase and it worked.

Drake
12 Jul, 2023, 02:03

This is a known issue: https://github.com/appwrite/appwrite/issues/4847

For now, just refresh the page

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