douliedai4838 2018-03-07 09:34
浏览 89

谷歌云平台引发了我的API密钥错误

I am working on Google cloud platform (Natural Language processing and Vision API)

I set up google cloud API (PHP) and to further authenticate my requests google suggested me like below:

First, ADC checks to see if the environment variable GOOGLE_APPLICATION_CREDENTIALS is set. If the variable is set, ADC uses the service account file that the variable points to.

If the environment variable isn't set, ADC uses the default service account that Compute Engine, Kubernetes Engine, App Engine, and Cloud Functions provide, for applications that run on those services.

If ADC can't use either of the above credentials, an error occurs.

I created a service account and download JSON and stored it on my server as suggested

After you've created the service account and set the environment variable, ADC is able to implicitly determine your credentials

Still I am getting the API key error like below:

Screenshot of Error

Adding Screenshot of Env variable that i had set on my server

ENV variable screenshot

  • 写回答

2条回答 默认 最新

  • duanlan5320 2018-03-07 10:07
    关注

    did you set GOOGLE_APPLICATION_CREDENTIALS environment variable? https://cloud.google.com/docs/authentication/getting-started

    评论

报告相同问题?

悬赏问题

  • ¥15 制裁名单20240508芯片厂商
  • ¥20 易康econgnition精度验证
  • ¥15 线程问题判断多次进入
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接