Firebase 函数不编译代码。编译失败时抛出状态代码 246



我的firebase函数直到昨晚都运行得很好,但现在已经停止工作了。当我运行我的功能时,我在我的谷歌云平台日志-上得到了这个错误

"Step #5 - "exporter": [31;1mERROR: [0mfailed to export: failed to write image to the following tags: [us.gcr.io/tookforms/gcf/us-central1/77926137-2972-4613-947e-c66d12cfd46f:calc_version-59: GET https://storage.googleapis.com/us.artifacts.tookforms.appspot.com/containers/images/sha256:b18e538d0dbca11a254142f571dfce8058959925b5e8c2c25679211b8b1bf0c6?access_token=REDACTED: unexpected status code 404 Not Found: <?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Details>No such object: us.artifacts.tookforms.appspot.com/containers/images/sha256:b18e538d0dbca11a254142f571dfce8058959925b5e8c2c25679211b8b1bf0c6</Details></Error>]" insertId: "3f132e37-fa6b-4f0a-8dc4-1244dca5a7a5-228"

据说它正试图将一些图片上传到谷歌云平台上的某个地方。但在我的功能中,我与任何图像都没有任何关系。我甚至不明白";图像";意思是在这里。

这是我得到的第二个错误,刚好低于第一个错误-

ERROR: build step 5 "us.gcr.io/fn-img/buildpacks/nodejs12/builder:nodejs12_20210310_12_21_0_RC00" failed: step exited with non-zero status: 246

我试着寻找状态代码246的含义,但显然它是谷歌制作的。我不确定。

这是我的功能代码-

const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
exports.calc = functions.https.onCall(async (data, context) => {
console.log('hello');
});

谷歌云服务器上的firebase函数出现问题。我刚刚从函数面板中删除了有故障的firebase函数,并再次部署了我的本地函数。它奏效了。

最新更新