谷歌云函数部署失败 [英] Google Cloud Function deployment failure

查看:26
本文介绍了谷歌云函数部署失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是谷歌云平台的新手,我正在尝试谷歌云功能,但它表现出非常奇怪的行为.我正在尝试运行以下代码:

I am new to Google Cloud Platform, and I am trying Google Cloud Functions but it is showing really strange behavior. I'm trying to run the following code:

exports.helloPubSub = (event, context) => {
 const pubsubMessage = event.data;  
 console.log(event.data.attributes);
 console.log(Buffer.from(pubsubMessage, 'base64').toString());
};

但是当我点击创建函数时,部署失败,尝试 8-9 次后几乎没有部署.它抛出的错误是

But when I click to create a function, the deployment fails and hardly after trying 8-9 times it gets deployed. The error which it throws is

Deployment failure:
Build failed: {"cacheStats": [{"status": "MISS", "hash": "0bb4aa23414dd82b8643cb2c86b5a55af031b22701fbe364a88ea6e61ad481a4", "type": "docker_layer_cache", "level": "global"}, {"status": "HIT", "hash": "0bb4aa23414dd82b8643cb2c86b5a55af031b22701fbe364a88ea6e61ad481a4", "type": "docker_layer_cache", "level": "project"}]}

这是 Google Cloud Platform 中的错误还是我做错了什么?如果我做错了什么,那么我应该无法部署它一次.

Is it a bug in Google Cloud Platform or am I doing something wrong? If I am doing something wrong, then I shouldn't be able to deploy it even once.

任何帮助将不胜感激.非常感谢!

Any help would really be appreciated. Thanks a lot!

推荐答案

如果我们查看 Google Cloud 状态,我们会发现此时(您发帖的时间)Cloud Function 部署出现中断.我对您的编码似乎没有任何问题,并且坚信您受到了中断的影响.

If we look at the Google Cloud Status, we find that there is an outage with Cloud Function deployment at this time (the time of your post). I can't seem anything wrong with what you have coded and strongly believe that you are being impacted by the outage.

这篇关于谷歌云函数部署失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆