Hey All, I recently migrated to 1.4.3 and am running into issues around providing the data/payload to functions via the REST Endpoint (https://appwrite.io/docs/client/functions?sdk=rest-default#functionsCreateExecution).
Is that documentation up to date? Prior to 1.4.x the following code snippet worked.
const response = await fetch(
"https://appwrite.<MyDomain>.com/v1/functions/<FunctionID>/executions",
{
method: "POST",
headers: {
"X-Appwrite-Project": "<ProjectID>",
"Content-Type": "application/json",
"X-Appwrite-Key": "<AppwriteKey>",
},
body: JSON.stringify({
data: JSON.stringify({
value1: "A",
value2: "B",
}),
}),
}
);
This is a new function built from the appwrite-cli template following 1.4.x standards.
The function executes but the req.bodyRaw & req.body values are empty.
This may be related to the new Custom Domains. I'm awaiting the DNS to refresh with a new CNAME Field but figured I'd reach out here in the meantime since the execution does still seem to be triggering.
Appreciate any assistance!