Back

Invalid document structure: Unknown attribute: "region"

  • 0
  • Self Hosted
  • Web
vasucp1207
21 Mar, 2023, 16:58
TL;DR
The user is experiencing an "Invalid document structure: Unknown attribute: 'region'" error when trying to create a project using Appwrite. This error typically occurs when there is an older version of Appwrite on the server with an outdated database. If the user doesn't need the old data, they can wipe it using the command "docker compose down -v" and then start Appwrite again with "docker compose up -d". The user should also check the environment variable for "_APP_REGION" in their container and make sure it is set correctly. If there is no error while running the containers, the user should check the network panel to
Binyamin
21 Mar, 2023, 16:59

See what error comes back in the network panel

vasucp1207
21 Mar, 2023, 17:02
Binyamin
21 Mar, 2023, 17:04

I don't really have an idea

bhaskarsingh
21 Mar, 2023, 17:08

@vasucp1207 how are running the appwrite? if you have access to the appwrite container try to look what error you are getting there

vasucp1207
21 Mar, 2023, 17:19

There is no error while running the containers

bhaskarsingh
21 Mar, 2023, 17:20

Which container you looked into?

vasucp1207
21 Mar, 2023, 17:29

Getting this on creating the project

bhaskarsingh
21 Mar, 2023, 17:35

You are getting error when POST method is called for /v1/projects mentioning that region is invalid

bhaskarsingh
21 Mar, 2023, 17:42

In your container check the environment variable for _APP_REGION , not sure what value it should be but for my setup the value is not set as and env variable and hence taking the default value when this post api is called

Drake
21 Mar, 2023, 18:49

This typically happens because you had an older version of Appwrite on your server with an older database. If you don't need the old data, you can wipe it with docker compose down -v and then start appwrite up again with docker compose up -d

Drake
21 Mar, 2023, 18:49

Invalid document structure: Unknown attribute: "region"

Pietras
18 Apr, 2023, 14:30

@Steven What to do when we need the old data?

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