Im trying to create an execution of a python function that only returns a string, and it gives me a "Could not resolve host". I attach a photo of the code and the error.
Why is that happening?
Are you on self-hosted? If so, how did you install Appwrite?
Yes im in selfhosted
i opened the appwrite-executor and this logs out in the docker image
How did you install Appwrite? Are your docker files in a folder named appwrite?
To be honest I don't remember how I installed appwrite, I opened my docker desktop and found a running instance so I decided to use it, I'm trying to find the docker-compose file that I used at that time
Does docker compose ls give any insight?
Oh with that I found it, only apparently the docker-compose file is not in the same path, I moved it from the folder. The docker compose ls points me to my directory
X:\DataYProgramas\ReactJS\stripetest2\backend\database\docker-compose.yaml
But the file is in
X:\DataYProgramas\ReactJS\stripetest2\STRIPE CONNECT TESTING\backend\database
Do you think that is the problem?
I don't know if this information about the location of the file is relevant, but I am commenting it in case it can help in something
So the problem is the open runtimes network isn't right. Run docker network ls to see the networks. Then, in the .env file, look for the runtimes network environment variable. Put the name of the network into the variable
done
but still shows the error
Did you run docker compose up -d to apply the change to the .env file?
forgot to do that
i do it and then create a new execution but still throws me the error 🤔
Can you share the output of docker inspect appwrite-executor?
OPEN_RUNTIMES_NETWORK is still appwrite_runtimes
thanks! its fixed now <:appwriterocket:823996226894692403>
[SOLVED] Could not resolve host on Python Function
Recommended threads
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- My cloud functions failing 3 days ago (P...
Hi, My cloud function using python has been failing for 3 days, I didn't push any new deployments... Its something to do with it not recognising the entrypoi...
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...