You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FunctionsClient invokes all edge functions using http method POST and ignores the http method provided in FunctionInvokeOptions. This was introduced in this PR FunctionInvokeOptions
and observe them failing if they only accept a certain http method such as DELETE. The underlying rawInvoke method initializes a new request with method = .post instead of respecting the provided method.
Expected behavior
Edge Functions should be triggered with the specified http method from the FunctionInvokeOptions
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
The
FunctionsClient
invokes all edge functions using http method POST and ignores the http method provided inFunctionInvokeOptions
. This was introduced in this PR FunctionInvokeOptionsTo Reproduce
Try to invoke any edge function with:
and observe them failing if they only accept a certain http method such as
DELETE
. The underlyingrawInvoke
method initializes a new request withmethod = .post
instead of respecting the provided method.Expected behavior
Edge Functions should be triggered with the specified http method from the
FunctionInvokeOptions
The text was updated successfully, but these errors were encountered: