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
- Self hosted project based backup
Is there a native way to perform a project-level backup in a self-hosted instance, instead of backing up the entire Docker instance? If not, I would like to off...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...