Back

Invalid `method` param Cloudfunction

  • 0
  • Self Hosted
  • Functions
Kevins35
18 Mar, 2024, 14:45

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

TL;DR
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.
Steven
18 Mar, 2024, 15:00
Kevins35
18 Mar, 2024, 15:02

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?

Steven
18 Mar, 2024, 15:02

Oh I see, you're executing via the domain?

Steven
18 Mar, 2024, 15:02

Best to talk to the service owner. You can try to create a feature request on Appwrite too

Kevins35
18 Mar, 2024, 15:03

yes exactly

Kevins35
18 Mar, 2024, 15:06

well thank you for your help… I will try to compact the service owner.

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