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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...