#[SOLVED] Trigger a function when a new user signup not work
4 messages · Page 1 of 1 (latest)
From my past experience I recommend you'll add the event in your appwrite.json file
{
"projectId": "yourProjectID",
"projectName": "yourProjectName",
"functions": [
{
"$id": "yourFunctionID",
"name": "yourFunctionName",
"runtime": "node-16.0",
"path": "functions/yourFunctionName",
"entrypoint": "src/index.js",
"ignore": [
"node_modules",
".npm"
],
"execute": [
"any"
],
"events": [
"users.*.create"
],
"schedule": "",
"timeout": 15
}
]
}
Then redeploy the function and try again.
Hello, this is exactly what I did in the appwrite.json (I can see it on the dashboard), I don't have the execute any is it important ?
No. It just for the example.
Try to run these commands
docker logs appwrite-worker-functions
docker logs appwrite-schedule
And share the output, if there's any error