
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
- Function running in cloud but not locall...
Hi everyone, I have an appwrite function which is on python3.12 runtime. I have a library (hnswlib) which builds wheels during installation. This works on appwr...
- Permissions for bulk operation
Hi team, I have a question: βIn the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
- Limit File Upload count?
Is there a way to limit the number of files a user can upload? I know there's a limit of file size but in my case I'd like to limit the user to only upload x am...
