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
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...