【发布时间】:2018-11-19 12:06:32
【问题描述】:
API 已在控制台中启用,但仍然出现此错误。
data:{
error:{
code:403,
message:'Cloud Speech API has not been used in project ************ before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/speech.googleapis.com/overview?project=************ then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.',
status:'PERMISSION_DENIED',
details:[
Array
]
}
}
【问题讨论】:
-
关于环境变量,您能否说明您是如何处理您的请求的,以及您是否已经执行了Before you begin 步骤?
-
我正在关注this 文档,并且也正确设置了环境变量。
-
您使用哪种编程语言?请记住,每次打开 CLI 时都应设置环境变量。
-
NodeJS,是的,我牢记在心。
-
我在帐户中禁用了 API,然后再次启用它。它成功了!