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
- ClientException with SocketException: Cl...
hi <@564158268319203348> i have noticed this 500 status code in my function requests, it seems its not able to connect to the internet in the function as reque...
- NEW ERROR Invalid document structure: At...
Error: ```AppwriteException: document_invalid_structure, Invalid document structure: Attribute "pb.kmsgxPkgInfo.id_info" must be an array (400)``` I’m encounter...
- Issues with executor in Appwrite 1.9.0
Hi, I’ve recently did a fresh install of appwrite 1.9.0 self hosted and when I run a function, it just waits indefinite This is the error from the log: [Er...