
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
- deno 2 Cloud random errors
we have big problems with the functions. although we do not change anything in the function, we have the following random behaviour: - no scope permissions erro...
- Appwrite functions can't connect to data...
I'm trying to create a function that queries my database, but all database operations timeout from within the function, even though CLI access works perfectly. ...
- Error
I'm trying to get sellerId using account.get() in my appwrite function and this is the error message I'm getting: "Failed to send notification to seller 6865bf...
