Google Cloud Function部署失败 [英] Google Cloud Function deployment failure

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

问题描述

我是Google Cloud Platform的新手,我正在尝试Google Cloud Functions,但它显示出非常奇怪的行为.我正在尝试运行以下代码:

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 Status,发现此时(发布您的文章)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.

  • Google Cloud Status Dashboard
  • Cloud Function outage

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

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