我正在按照谷歌教程创建一个简单的helloWorld函数并将其部署到谷歌云上。我的机器是Windows 7- 64位。我正在关注这个链接:https://cloud.google.com/functions/docs/tutorials/http
However I am facing few issues here:
1. Before You Begin -> Enable the API: getting the following error: "You have no permissions to use requested API"
2. Install the Cloud SDK: When I run the downloaded installer, following error comes: "Unzip failed: Error opening ZIP file"
I however installed SDK from another link:
https://cloud.google.com/sdk/downloads#versioned
3. Unable to install alpha component. Used this command:
gcloud components install alpha
4. Deploying the function:
ERROR: (gcloud.alpha.functions.deploy) ResponseError: status=[403], code=[Forbid
den], message=[Cannot access Google Cloud Functions API in project gcf-project-1
]
If anybody knows the solution, please help.
Thanks,
Robin发布于 2017-05-09 08:10:59
这可能很愚蠢,但请确保在gcloud仪表板网站上的项目设置中启用了cloud functions api。

发布于 2017-03-12 05:56:03
Google Cloud Functions刚刚作为公开测试版发布。命令略有不同(例如,您不安装alpha组件)!它现在应该都可以工作了,而不需要加入白名单。
发布于 2016-08-03 07:02:43
Google Cloud Functions目前在Alpha中,这意味着它只是白名单。您收到此错误是因为您的帐户未被列入白名单。您需要注册才能访问Alpha,您可以使用here
https://stackoverflow.com/questions/38195432
复制相似问题