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
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...