在部署我的代码时,我收到以下错误:
⚠ functions: failed to create function tests-testV2RefreshPodcast-testNewEpisodeMetadata
...
Functions deploy had errors. To continue deploying other features (such as database), run:
firebase deploy --except functions
Error: Functions did not deploy properly.
我的代码如下:
exports.testNewEpisodeMetadata = functions.database.ref(testPath.getNewEpisodeScenarioTrigger()).onUpdate(() => {
return Promise.all([])
})
答案 0 :(得分:0)
发现这是因为名称大小限制。这是一条有效的道路:
✔ functions[tests-testV2RefreshPodcast-testNewEpMeta]: Successful create operation.
请注意我如何将名称testNewEpisodeMetadata
更改为testNewEpMeta