Back

[SOLVED] Functions always return 404 page not found

  • 0
  • Self Hosted
  • Functions
f4ls3
30 Dec, 2023, 15:47

I've set up the functions following the docs. Everything works fine but I can't seem to execute the functions using my domain. I've setup a wildcard dns record: *.functions.cloud.roehrdanz.com but the only thing returned by any request to any function using that domain is 404 page not found.

My Appwrite setup is probably one of the more advanced ones because Im self hosting it on my own VMs using Proxmox and a dedicated server. On the host machine I have Nginx Proxy Manager to route all trafic to the specific VMs. In NPM I also have a wildcard proxy host setup pointing to the Appwrite VM with the according SSL certificates. Did I forget to setup something or is my routing off or maybe another issue?

TL;DR
The user was experiencing a problem where their functions always returned a 404 page not found error. However, they quickly realized that the issue was due to setting the protocol to 'http' instead of 'https' in NPM. This mistake was resolved by changing the protocol to 'https'.
f4ls3
30 Dec, 2023, 15:51

🤦‍♂️ I've immediately found my issue right after posting this. In NPM I had set the protocol to http by accident. Changing it to https fixed my issue

Drake
30 Dec, 2023, 18:25

[SOLVED] Functions always return 404 page not found

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