Skip to content
Back

Incorrect Function URL Generation

  • 0
  • Self Hosted
  • Functions
  • Web
  • Cloud
mouadzizi
3 Nov, 2024, 02:08

Hello everyone,

I'm facing an issue with the Appwrite dashboard where it generates URLs for functions in an incorrect format. The URLs currently look like this:

6726d46da941bbf9cbfd.https://appwrite.xxxx.app

However, the correct format should be:

6726d46da941bbf9cbfd.appwrite.xxxx.app

I'm self-hosting Appwrite using Coolify, and I've reviewed my domain and server configurations, which all seem to be set up correctly.

TL;DR
Developers initially found the support unhelpful, but resolved the issue by manually removing 'https://' from the 'SERVICE_FQDN_APPWRITE' field. They also recommended recreating containers with the command 'docker compose up -d' and having backups. The problem was caused by the incorrect URL generation format in the Appwrite dashboard.
Kenny
4 Nov, 2024, 16:53

What does your environment variable for _APP_DOMAIN_FUNCTIONS have?

mouadzizi
4 Nov, 2024, 16:56

My _APP_DOMAIN_FUNCTIONS is set to $SERVICE_FQDN_APPWRITE.

Coolify uses this variable, $SERVICE_FQDN_APPWRITE, as the main URL for the dashboard.

Kenny
4 Nov, 2024, 16:58

does that include the https://?

Kenny
4 Nov, 2024, 16:58

That's probably your issue.

mouadzizi
4 Nov, 2024, 16:59

Yes, it is included. I tried removing it, but when I create a function, it still generates the same URL format (https://...).

I also tried using a new subdomain I created, but it doesn't load the new subdomain. It keeps defaulting to the main dashboard URL.

mouadzizi
4 Nov, 2024, 17:01

I am updating the .env file from the Coolify dashboard. After making the updates, I restart the system.

D5
4 Nov, 2024, 17:04

Do you have recreated the containers?

mouadzizi
4 Nov, 2024, 17:32

not sure about that

mouadzizi
4 Nov, 2024, 17:43
mouadzizi
4 Nov, 2024, 18:56

Anyupdates plz ?

D5
4 Nov, 2024, 19:19

If you installed appwrite with the default commands, you should recreate them with docker compose up -d I recommend having backups

mouadzizi
4 Nov, 2024, 20:30

None of this was helpful initially. Coolify automatically added https:// at the beginning of the domain. I was able to fix the issue by manually removing the https:// from the SERVICE_FQDN_APPWRITE field in the dashboard's Production Environment Variables. Now, the URL format is generated correctly.

D5
4 Nov, 2024, 21:52

Interesting. Can I mark this as solved then?

mouadzizi
5 Nov, 2024, 00:54

yes you can

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