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
- I can't share code between functions
Operating System: MacOS Appwrite Version: self-hosted 1.8.1 Appwrite CLI Version: 13.2.1 I want to split code up to share it between my functions. At the momen...
- Need help to create a wrapper which let ...
I’m looking for help setting up Appwrite properly on a VPS so I can build a self-hosting wrapper around it. The goal is to provide a Linux executable that allow...
- Error connecting to my GitHub repository
Nothing happens when I try to connect my GitHub repository, but when I try from “Create site,” I get a 500 error.