When go to my function URL, it executes twice.
/favicon.ico path always being the second execution.
Why is that happening?
browsers automatically fetch favicon
Ah, so I can't do anything about this?
You can check the path and return nothing at start so it will finish as fast as possible
not if you're opening it with a browser
Well, still goes to execution count. π
Ooh for that part Yes..
Another thing
At some point I do return res.redirect(new URL(document.url));
Shouldn't this redirect me, in the browser, to the url that is set in here?
If I run it from the browser
yes? depends on how you've done it
redirection is inside a utility function that is in another file. It doesn't redirect even tho it comes and executes that line of code.
Should redirect part rather be in the main method in main.ts rather than in the utility?
Nevermind
I actually forgot a return statement on utility call. It works. Ty
[SOLVED] Cloud function executes twice from the URL
Recommended threads
- Issue related to index
Why it is showing this error?
- [SOLVED] Unable to push function from AP...
When trying to push functions from Gitlab CI (with an API KEY and using the CLI), i saw that i was unable to push functions. ``` $ appwrite client --endpoint $...
- Appwrite Functions not executing with a ...
I have multiple functions running with a CRON Job however, they all stopped executing around 35 mins ago from this post. Project ID:6a4a03920012bede992d Region:...