Skip to content
Back

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

  • 0
  • Self Hosted
  • Sites
Kv
21 Sep, 2025, 04:42

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?

TL;DR
Developers are unable to send a HEAD request in their self-hosted appwrite sites, receiving an error about an invalid method parameter. The issue seems to be related to the API route configuration. To fix this, ensure that the endpoint is correctly set up and that the API route is valid for the SDK version being used.
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