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
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- No Document ID?
Hi I have a self hosted appwrite. My documents get a document ID but are not visible in the console. I don't know why this happens and how to fix this
- How to determine if a user is anonymous?
This is probably a silly question, but I have not yet found a good answer. Is there a method to determine if the current session is anonymous aside from seein...