error: AppwriteException: Invalid data: Value must be a valid string and no longer than 8192 chars
code:
const promise2 = functions.createExecution("647c55d49f0f42exxxxx", {"name": names, "about": details});
names is a list of names, but it works fine when I execute the function from appwrite console with same input
Read the error and look at your input
it says the input can only be string
not even JSON?
But then how do I pass multiple inputs
how are you handling req.payload in your function code?
user_names = json.loads(req.payload)["name"]
so think about that...json.loads()...
um ok
Oh
I think I got it
Recommended threads
- Bug: Cloud Function On Schedule Didn't R...
Heya I have a cloud function with this cron `0 17 * * *` to run at 9AM PT every day. I have not touched this since I set it up, and it has been working fine s...
- functions
Code for function not being created in Github. Permissions are set correctly, repository is created, however no code is in the created repository. Just trying...
- Urgent help required - Could not resolve...
I upgraded my production environment to 1.8.0 but experienced issues with appwrite running out of worker threads. I downgraded back to 1.6.1 and restored the da...