
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
- phantom relationships appear on parent c...
i have this bug were my past deleted collection apears as relationship to my parent collection. when i try to delete that relationship from parent it gives me e...
- Attribute stuck on proccessing
i tried creating a new attribute butits stuck on proccessing,i did a hard refresh,cleared cache everything but still stuck on proccessing,also in my functions w...
- Appwrite Cloud Custom Domains Issue
I’m trying to configure my custom domain appwrite.qnarweb.com (CNAME pointing to fra.cloud.appwrite.io with Cloudflare proxy disabled) but encountering a TLS ce...
