Jos*_*ren 1 firebase google-cloud-functions google-cloud-firestore
我之前已经能够在 Firebase CLI 中附加 POST 请求的正文,但文档缺少如何再次执行此操作的任何示例。
例子:
我尝试:
myFunction.post({body: {...}})
Run Code Online (Sandbox Code Playgroud)
但收到以下错误:
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string or Buffer. Received type object
Run Code Online (Sandbox Code Playgroud)
我想访问通过 传递的数据req.body。有任何想法吗?
| 归档时间: |
|
| 查看次数: |
454 次 |
| 最近记录: |