Kotlin - Document payload missing when creating document with null values
- 0
- Self Hosted
- Databases
I have a collection with two attributes, and when I create a document with the Kotlin SDK with both of them set to null, i get the error AppwriteException: The document payload is missing.
Hi
Can you show me the code you have been using to make the document? and also the version of Appwrite
val appwriteClient = Client()
.setEndpoint(env("APPWRITE_ENDPOINT"))
.setProject(env("APPWRITE_PROJECT_ID"))
.setKey(env("APPWRITE_API_KEY"))
val databases = Databases(appwriteClient)
databases.createDocument(
databaseId = env("APPWRITE_CONFIG_DATABASE_ID"),
collectionId = env("APPWRITE_CONFIG_COLLECTION_ID"),
documentId = serverId.toString(),
data = mapOf(
"admin_alert_channel" to null,
"admin_role_id" to null
)
)
sorry i fell asleep lol
sdk version is 2.0.0
huh it's only when both values are null
if i set one to a random integer it works but when both are null, i get the error
is there any way i can fix this on my side or is it an appwrite thing?
this is weird
i can agree with that lol
ill check this and let you know once
tysm! do you have any estimate on how long that'll be?
Recommended threads
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Self Hosted GitHub connection not adding...
After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions. I removed the existing github connection via Set...
- Android SDK: Kotlin null Value Not Updat...
Hi team, I think you should check the Android SDK implementation once, as it seems to have an issue handling Kotlin **null** values. For example: When I send:...