dongtuo1482 2019-08-13 13:23
浏览 471

GOOGLE_APPLICATION_CREDENTIALS文件无法访问

I'm trying to use the Google Speech API using PHP client library. Following the documentation I have created the service key, copied it to the vm where my application sits and set the GOOGLE_APPLICATION_CREDENTIALS env variable. However when I try to use the service, I'm getting an error saying the credentials file does not exist, even though I can access the file and it's contents by copying the exact same path as shown in the error message.

So to sum it up, the env variable is being correctly set, the path it's being set to is correct, but for some reason the service can't see the file. Any ideas please?

  • 写回答

1条回答 默认 最新

  • douchun1961 2019-08-15 09:30
    关注

    It turned out to be caused by the path in the env variable being surrounded with quotes.

    评论

报告相同问题?

悬赏问题

  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏