且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Firebase Cloud功能删除用户

更新时间:2023-12-01 23:15:40

您已编写了callable 类型的函数,但是您尝试使用标准的HTTP请求来调用它.这行不通.如果要在后端使用可调用对象,则需要使用提供的客户端库来调用它.请参阅文档以获取示例.

You've written a callable type function, but you're trying to invoke it with a standard HTTP request. This isn't going to work. If you want to use a callable on the backend, you'll need to use the provided client library to invoke it. Please see the documentation for examples.

如果无法使用客户端库,则必须实现您自己在客户端中可调用的协议.

If you are unable to use the client library, then you will have to implement the callable protocol yourself in the client.

如果要实现不需要特殊协议的常规HTTP函数,则不应使用可调用函数,而应编写

If you want to implement a normal HTTP function that doesn't require a special protocol, you should not use a callable, and instead write an HTTP trigger.

再次清楚地说,可调用函数 HTTP函数.请务必阅读文档并选择所需的文档.

Again, to be clear, callable functions are different than HTTP functions. Be sure to read the documentation and choose the one you want.