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
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...
- Error can not create `tablesdb` event wi...
When i'm trying to add an event with `tablesdb` i get an error message My event value: `tablesdb.mtg-decklist-dev.tables.queue_parsing.rows.*.create` Same err...