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
- Unable to push functions
Hi! I just wanted to push a cloud function to my self hosted Appwrite 1.7.4 server. While the init part works (I can see the function in the web console), i'm ...
- Issue with Custom Domain Verification - ...
I'm encountering a persistent issue with adding and verifying a custom subdomain in my Appwrite project, and I believe it may be related to an unexpected behavi...
- Adding Custom Domain to self-hosted Appw...
Hi, i deployed Appwrite with Coolify and reaching it with appw.appname.de. What is working so far. I wanted to add another custom Domain to activate email verif...
