Unable to send HEAD request in self-hosted appwrite sites, am i missing something?
- 0
- Self Hosted
- Sites

I attempted to submit a sitemap for my Angular SSR website on Google Search Console, which I host on my self-hosted appwrite instance, but received an error stating that Google could not reach the site.
I investigated the logs of the appwrite container and found the following error:
Invalid method
param: Value must be one of (GET, POST, PUT, PATCH, DELETE, OPTIONS)
[Error] Timestamp: 2025-09-21T04:13:43+00:00
[Error] Method:
[Error] URL: /sitemap.xml
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Route not found. Please ensure the endpoint is configured correctly and that the API route is valid for this SDK version. Refer to the API docs for more details.
[Error] File: /usr/src/code/app/controllers/general.php
[Error] Line: 1583
Google and other crawlers send a HEAD request first to see if the content is available, so I tried again with a manual HEAD request and received the same error.
I tried building a small site deployment with only index.html, thinking there was a problem with my angular ssr configuration, but it too returned the same error when sending the head request.
I also tried doing the same on appwrite cloud (head-req-test.appwrite.network), but there were no problems sending HEAD requests, however the same setup on my self-host did not allow me to send HEAD.
Am I missing something?
Recommended threads
- Getting Function error: Protocol "https:...
Hi guys, I have a function on node-16.0 runtime but whenever I try to run the function I keep getting this error. I have tried putting htttp:// in my endpoint b...
- Migrating from one self-hosted instance ...
I am trying to migrate from an older VM running Appwrite 1.6 to a new VM with the latest version. On my new VM running Appwrite 1.7.4 I am going to migrations...
- Flutter docs
Flutter documentation is so bad, the api is for web version and you dont support self host, also you can't find anything, for now im staying with supabase, your...
