I am calling create execution to a function its running twice in the appwrite backend
Hello 👋 Can you reproduce it easily with a new function? Could you share more details so we can try it on our end?
It does not happen always
its just buggy I can't even pinpoint why it happens
Are you executing with SDK, using custom domain, ir some other way? For example, domain executions done in browser sometimes load some extra files like favicon. Or could send request just to get og image
Yes using the sdk, custom domain
You can log params on request, such as req.path, req.url and req.method, to see if they are exactpy the same, or different requests being sent
Ok
I’ve had this happen in the past because I forgot that I had triggers setup for an event. Check that your function has no events setup to trigger it
If that happened it will be consistent it happens and sometimes it does notr
[Solved] Calling createExecution runs function twice
Recommended threads
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...