Hi! The function is triggered, when there is 'databases..collections..documents.*.update' but I see that the function is being executed times. Do you know why?
That function will be executed anytime any document in any database and collection is being updated
- Document updated --> 2. Function executed BUT why 3 times at once?
What does the function do
Does it by any chance update any document
It creates a summary of all markdown files, that are existing in the db
Are you updating any document during that process
it actually replaces the image names with their URLs, after getting the md content
There you have it
Thanks!
[SOLVED] Problem with Event Trigger
why exactly is it being executed 3 times? Not 4 or more, for example 😄
Don't quote me on this but as far as I remember they have some measures in place to prevent infinite loop. Not totally sure tho
Problem with Event Trigger
Hi! Unfortunately, it is happening the same, when just adding new documents, not changing/updating them. Do you probably have any solution? (using Python)
Log the event string to see what event is causing it
Sorry for the stupid question (as a beginner), but how to do this?
Retrieve the event string from the header x-appwrite-event
Do you know how to extract headers in python functions?
Recommended threads
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...
- "Domain verification failed"
"Domain verification failed" I was install Appwrite in my VDS server. I using Coolify for install Appwrite. After install complete, i want add my domain, and i ...