Rank 1: Thread
Hosting Appwrite on local docker container (http://localhost:80). Mocha test calls to Appwrite storage works correctly. Deployed function anyway does not connect to storage. Causes Exception: connect ECONNREFUSED 127.0.0.1:80 when running row "const fileInfo = await storage.getFile(bucketId, fileId);". Seems like function instance do not see appwrite container instance althought should be in same docker-compose network I suppose. Like said same code runs and connect to appwrite without any problems when used in mocha test. I assume this to be some env setup problem. Below envs related to functions.
_APP_FUNCTIONS_SIZE_LIMIT=30000000
_APP_FUNCTIONS_TIMEOUT=900
_APP_FUNCTIONS_BUILD_TIMEOUT=900
_APP_FUNCTIONS_CONTAINERS=10
_APP_FUNCTIONS_CPUS=0
_APP_FUNCTIONS_MEMORY=0
_APP_FUNCTIONS_MEMORY_SWAP=0
_APP_FUNCTIONS_RUNTIMES=node-18.0,dotnet-6.0,python-3.9
_APP_EXECUTOR_SECRET=your-secret-key
_APP_EXECUTOR_HOST=http://appwrite-executor/v1
_APP_EXECUTOR_RUNTIME_NETWORK=appwrite_runtimes
_APP_FUNCTIONS_ENVS=node-18.0,dotnet-6.0,python-3.9
_APP_FUNCTIONS_INACTIVE_THRESHOLD=60
