I found that there was few other support tickets with same topic, but neither of those seemed to solve my issue. I'm running a function when new user is created, which should create a new user into collection. Function seems to fail at point where it's trying to create document.
I've setup my local appwrite instance with direct copy of https://appwrite.io/install/compose docker-compose.yml and https://appwrite.io/install/env .env file.
I understood from previous replies, that for function run, appwrite spins up a new docker container, that runs the function. But does that container spin up inside the appwrite-stack, or just as own separate docker container?
The function template that I'm using is taken directly from appwrite functions starter templates.
Ah, I can ammend this that much, that I figured out that functions gets spin up as new outside appwrite-stack containers in docker. I wonder what kind of configurations I should perform, to allow that container to access http://localhost/v1 address?
Since on my NextJS project (which I'm running on WSL), I'm able to define appwrite-env variables with http://localhost/v1, and that's working perfectly.
Recommended threads
- Function's Static IP
Is it possible to have static. IP Address instead of Dynamic IP for getting the IP Address whitelist
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Migration from Cloud to Self-Hosted not ...
Hello Appwrite Community, I've got the problem, that when I try to migrate my Appwrite Project from the cloud to my self-hosted Appwrite, that an API Key is mi...