Hello! How can I have the docker run command add in an additional host-name when I execute a new function? At the moment I have the machine host file working correctly but when I run a new function the host file for that new machine that is created is missing the host file so the connection times out. Any ideas on how I can fix this so when I execute a function it can connect to the correct address?
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='###', port=443): Max retries exceeded with url: /api/Identity/Token (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f4fff706a90>: Failed to resolve '###' ([Errno -2] Name does not resolve)"))
You can't really...but do you have the host configured in your host machines host file?
correct configured in the host file but it cant resolve the name from the function
are you on windows or unix?
unix
I thought the hosts file on the host machine is automatically passed to docker containers.
Otherwise, I don't think there's any other option
Are you trying to connect to your Appwrite from a function internally? If this is your use-case there is some workaround Like B: 👇
So you can use your client like such for example
client = Client()
.set_endpoint('http://1.1.1.1/v1')
We were able to add the host names on the outbound of the VM to the internet and this allowed us to use the URLs without having them in the host names. Thank you for your support!
[SOLVED] Python Docker Container Host File
Recommended threads
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...
- How to verify an user using AppWrite Fun...
I have seen similar questions but none whose solutions serve me. I have a function to verify a user with their secret and their id: https://blahblah.appwrite.gl...