我是使用Google API的新手。
我正在逐步按照Google制作的下一个教程:https://cloud.google.com/functions/docs/tutorials/ocr
我想部署Google提供的特定功能(processImage
函数)。
我将此输入到控制台中:
gcloud alpha functions deploy ocr-extract --stage-bucket [YOUR_STAGING_BUCKET_NAME] --trigger-bucket [YOUR_IMAGE_BUCKET_NAME] --entry-point processImage
但这给了我这个错误:Error: (gcloud.alpha.functions.deploy) ResponseError: status=[403], code=[Forbidden], message=[Cannot access Google Cloud Functions API in project
最佳答案
我遇到了同样的错误。我在命令提示符终端中执行gcloud init
后,该问题就解决了。提到的命令将我的GCP项目链接到了我的文件所在的文件夹。在您提到的命令执行后。
关于api - 错误: (gcloud. alpha.functions.deploy)响应错误: status=[403],代码= [禁止],消息= [无法访问项目中的Google Cloud Functions API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40684758/