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
- Site hosting and domain name issue
I'm hosting my site using appwrite domains, I want to have https://www.mysite.com and https://mysite.com to point to the same Site. But each time I try to add "...
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...