Open
Description
👟 Reproduction steps
I was trying to use the Swift Server SDK (version 7.0.1
) to create the DB structure. Here's a simple program to repro:
let client = Client()
.setEndpoint("http://ipadress/v1")
.setProject("<PROJECT_ID>")
.setKey("<YOUR_API_KEY>")
.setSelfSigned()
func prepareDatabase() async -> (Database?, Collection?) {
let todoDatabase = try? await databases.create(
databaseId: ID.unique(),
name: "TodosDB"
)
try? await databases.createStringAttribute( // This is causing the crash
databaseId: todoDatabase!.id,
collectionId: todoCollection!.id,
key: "title",
size: 255,
required: true
)
return (todoDatabase, todoCollection)
}
let (todoDatabase, todoCollection) = await prepareDatabase()
👍 Expected behavior
I expected No crash, since the same code works on my remote Database.
It looks like some fields are not returned when using localhost.
👎 Actual Behavior

🎲 Appwrite version
Different version (specify in environment)
💻 Operating system
MacOS
🧱 Your Environment
docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:1.6.0
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct