我正在尝试在 zsh shell (Arch Linux) 中使用此行来部署 Google Cloud HTTP 函数:
gcloud functions deploy testing --runtime python38 --trigger-http --allow-unauthenticated
Run Code Online (Sandbox Code Playgroud)
当函数只有[main.py]时:
def testing(request):
print("yes")
return 'finished', 200
Run Code Online (Sandbox Code Playgroud)
这是它给出的错误:
错误:
获取存储源时出错:generic::unknown:重试预算耗尽(3 次尝试):获取 gcs 源:从 gcs 解压源:源获取容器以非零状态退出:1
然而,有趣的是,我拥有的其他谷歌云功能(一些是 HTTP 触发,一些是云存储触发)部署得很好。我认为唯一可能的问题是云函数数量限制(?也许??)
请帮帮我
为什么这不起作用?它是在视觉研究2015年,Windows窗体应用程序C#
namespace guessing
{
public partial class Form1 : Form
{
Random rnd = new Random();
int rndm = rnd.Next(1, 13);
Run Code Online (Sandbox Code Playgroud)
在rnd下有一个错误,它说:
"字段初始值设定项不能引用非静态字段,方法或属性'Form1.rnd'"