yeah it works
I will review cors (maybe that is the error)
And you said you tried using the LAN IP of your machine?
And are you disabling the SSL verification?
yeah I tried to use the lan ip also
no i didn't i will review in axios docs
Did you test localhost using axios?
yeah, but localhost points to the container itself
And it was https without any extra SSL bypass?
yeah
That's kind of surprising....
What OS do you have?
now the error says "self-signed certificate"
windows 11 and WSL ubuntu 20.04
Try to set up ignore SSL verification
So that API you have...is that running in a docker container?
No, the api is running in windows, and I'm trying to call it from an appwrite function (container)
sorry i didn't explain it well
It is working now, I disabled SSL verification from axios using: httpsAgent: new https.Agent({ rejectUnauthorized: false, }),
But It only works with the LAN ip
It doesnt work with the bridge 172.17.0.1
Yes that makes sense because WSL is like a virtual machine inside windows
That bridge would be a bridge to WSL, not windows
Yes, I tried to call the endpoint with curl from WSL, it only works with lan ip not localhost
[SOLVED] call api from a function
Thank you so much @Steven
Recommended threads
- TablesDB can't be used in Appwrite Funct...
I have written a function (DART) and it won't deploy. Here is what I get : 2026-03-14T17:09:41.459693680Z Compiling ... 2026-03-14T17:09:42.915619217Z ../build...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...