Rank 2: Process
I have this error ```html
Error 401
This domain is not connected to any Appwrite resource yet. Please configure custom domain or function domain to allow this request.
Type
general_access_forbidden
Votes
1
Replies
22
Participants
Unknown
Messages
23
Rank 2: Process
I have this error ```html
Error 401
This domain is not connected to any Appwrite resource yet. Please configure custom domain or function domain to allow this request.
Type
general_access_forbidden
Moderator
The migration was from cloud to self-hosted?
Rank 2: Process
self
Moderator
Self-hosted to cloud?
Rank 2: Process
to v1.4.9
Rank 2: Process
Self-hosted
Moderator
So you mean you upgraded it
Moderator
The error usually appears when you enter invalid credentials or an account different from the main one to access console so you don't have access to such project
Rank 2: Process
Ahh! So how to change credential ? because when I tip "appwrite init project and choose ==>Link this directory to an existing Appwrite project<==" It show the same error
Rank 2: Process
It work in cloud 👏 but not in Self-hosted 🥺 .
When I switch my endpoint from "appwrite client --endpoint http://localhost/v1" to "appwrite client --endpoint https://cloud.appwrite.io/v1" then link an project id using "appwrite projects get --projectId <PROJECT_ID>".
Rank 2: Process
All worked before my migration from 1.4.7 to 1.4.9
Rank 2: Process
DONE
Moderator
Run the
appwrite login
command
Rank 2: Process
Its okay
. But now I get domain Error
Rank 2: Process
Moderator
Try using the instance IP instead of localhost
Rank 5: Hypervisor
Is _APP_DOMAIN in your .env file set correctly?
Rank 2: Process
I Just fix it. It work
Moderator
What was the solution?
Rank 2: Process
_APP_DOMAIN_FUNCTIONS=localhost
Rank 2: Process
update function domain
Moderator
Great!
Moderator
[SOLVED] My Appwrite Doesn't Work After My Migration