Firestore python函数未触发

2024-09-28 21:00:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我创建了一个简单的python函数,只包含一个print(“triggered”),并使用以下命令部署:

gcloud functions deploy hello_world --runtime python37 --trigger-event providers/cloud.firestore/eventTypes/document.create --trigger-resource projects/my-project-name/databases/default/documents/testing/{testId}

也尝试过与供应商/cloud.firestore/eventTypes/document文件。写入

但是,当我在/testing/中创建一个新文档时,该函数根本不会触发。你知道吗

我试过用firebase存储触发器,它能工作。你知道吗

有虫子什么的吗?还是我被窃听了?你知道吗


Tags: 函数命令cloudhello部署functionstestingdocument