Back

Collection indexes not getting deployed

  • 0
  • Tools
Aarush Acharya
10 Mar, 2024, 13:25

Hey I was doing appwrite deploy collections but it gave me an internal server error on a collection named participants i figured the problem was in its "indexes" as making them empty list solved the problem this is the indexes list

TypeScript
   "indexes": [
            {
                "key": "roomId",
                "type": "key",
                "status": "available",
                "error": "",
                "attributes": [
                    "roomId"
                ],
                "orders": [
                    "ASC"
                ]
            },
            {
                "key": "uid",
                "type": "key",
                "status": "available",
                "error": "",
                "attributes": [
                    "uid"
                ],
                "orders": [
                    "ASC"
                ]
            },
            {
                "key": "roomUser",
                "type": "key",
                "status": "available",
                "error": "",
                "attributes": [
                    "uid",
                    "roomId"
                ],
                "orders": [
                    "ASC",
                    "ASC"
                ]
            }
        ]

what am i doing wrong here and this was the indexes json created by pulling the collection of my project via appwrite init collections

TL;DR
Developers are experiencing an issue with deploying collection indexes in Appwrite. The problem is related to the indexes section in the appwrite.json file causing an internal server error. By making the indexes list empty, the issue was resolved. The provided indexes JSON structure from the project contains the necessary keys and attributes, so it's unsure why the error occurred.
D5
10 Mar, 2024, 13:27

What are the queries you're performing? And what errors are you getting?

Aarush Acharya
10 Mar, 2024, 13:30

I have a appwrite.json

Aarush Acharya
10 Mar, 2024, 13:30

and then i do appwrite deploy collection

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