Skip to content
Back

Unable to connect. Is the computer able to access the url?

  • 0
  • Self Hosted
  • Functions
  • Databases
Maastonakki
1 Jun, 2025, 14:47

I found that there was few other support tickets with same topic, but neither of those seemed to solve my issue. I'm running a function when new user is created, which should create a new user into collection. Function seems to fail at point where it's trying to create document.

I've setup my local appwrite instance with direct copy of https://appwrite.io/install/compose docker-compose.yml and https://appwrite.io/install/env .env file.

I understood from previous replies, that for function run, appwrite spins up a new docker container, that runs the function. But does that container spin up inside the appwrite-stack, or just as own separate docker container?

The function template that I'm using is taken directly from appwrite functions starter templates.

TL;DR
The developer is having trouble allowing a container to access the http://localhost/v1 address in their NextJS project running on WSL. They have set up an Appwrite instance locally using Docker Compose and .env file. The issue seems to occur when a new user is created, and the function fails at the point of creating a document. The developer is unsure if the container spins up inside the 'appwrite'-stack or as a separate docker container. The function template being used is from Appwrite's starter templates.
Maastonakki
1 Jun, 2025, 14:59

Ah, I can ammend this that much, that I figured out that functions gets spin up as new outside appwrite-stack containers in docker. I wonder what kind of configurations I should perform, to allow that container to access http://localhost/v1 address?

Since on my NextJS project (which I'm running on WSL), I'm able to define appwrite-env variables with http://localhost/v1, and that's working perfectly.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more