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
Summary
Developers facing issue with Cloud Function execution due to invalid `method` parameter error. It needs to be one of (GET, POST, PUT, PATCH, DELETE, OPTIONS). The error is caused by 'HEAD' method being used, which is not supported. Need to discuss with service owner executing the function. The execution is not supported: [link to code]. Using Appwrite 1.5.1 Dart 3.1.
Solution: Change method parameter to one of the supported values.