I have a Cloud Function. Im using it as a kind of API. It gehts executed from another Service (over which I have no Control) but falls imeadiatly with the following error:
Invalid method param: Value must be one of (GET, POST, PUT, PATCH, DELETE, OPTIONS)\nError Code: 400
In the Overview, there stands „HEAD“ as Method. How can I fix that?
My Setup: Self Hosted Appwrite 1.5.1 (Dart 3.1) Runtime
I'm surprised an execution is even created because we don't support head: https://github.com/appwrite/appwrite/blob/72e00d4b432fa15c8e16d8256d5a267517b48a80/app/controllers/api/functions.php#L1513
well that is unfortunate… Is there any way arround this, or is this something, i need to diskussion with the service owner, who calls the function?
Oh I see, you're executing via the domain?
Best to talk to the service owner. You can try to create a feature request on Appwrite too
yes exactly
well thank you for your help… I will try to compact the service owner.
Recommended threads
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- TablesDB can't be used in Appwrite Funct...
I have written a function (DART) and it won't deploy. Here is what I get : 2026-03-14T17:09:41.459693680Z Compiling ... 2026-03-14T17:09:42.915619217Z ../build...