Rank 2: Process
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});
Votes
0
Replies
11
Participants
Unknown
Messages
12
Rank 2: Process
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});
Rank 2: Process
names is a list of names,
but it works fine when I execute the function from appwrite console with same input
Admin
Read the error and look at your input
Rank 2: Process
it says the input can only be string
Rank 2: Process
not even JSON?
Rank 2: Process
But then how do I pass multiple inputs
Admin
how are you handling req.payload in your function code?
Rank 2: Process
user_names = json.loads(req.payload)["name"]
Admin
so think about that...json.loads()...
Rank 2: Process
um ok
Rank 2: Process
Oh
Rank 2: Process
I think I got it