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
- hi guys! my site is not accesible in my ...
- Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...