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
- ClientException with SocketException: Cl...
hi <@564158268319203348> i have noticed this 500 status code in my function requests, it seems its not able to connect to the internet in the function as reque...
- significant increase in CPU usage with 1...
Hi, This is no big deal at all (as everything is working great so far), but I just saw that the update (from 1.8 to 1.9) consumes much more CPU than before (re...
- NEW ERROR Invalid document structure: At...
Error: ```AppwriteException: document_invalid_structure, Invalid document structure: Attribute "pb.kmsgxPkgInfo.id_info" must be an array (400)``` I’m encounter...