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
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- executeFunction intermittently throws Fo...
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function]. *Description*: Int...