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
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Python Function Deployment hits General ...
The same deployment was working without issue yesterday and I have not hit any free tier limits yet. How do I figure out what's happening? Are you having issues...