由于名称太长而无法创建函数错误

时间:2018-01-21 02:57:16

标签: firebase google-cloud-functions

在部署我的代码时,我收到以下错误:

⚠  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([])
})

1 个答案:

答案 0 :(得分:0)

发现这是因为名称大小限制。这是一条有效的道路:

✔  functions[tests-testV2RefreshPodcast-testNewEpMeta]: Successful create operation. 

请注意我如何将名称testNewEpisodeMetadata更改为testNewEpMeta