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
- Provider error when creating a function ...
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...