简体   繁体   English

Google AutoML nodejs 中的权限错误处理

[英]Permission error handling in Google AutoML nodejs

Permissions error权限错误

I'm currently experiencing an issue with authenticating the new Google AutoML API despite setting up the correct service accounts and attaching them as A JSON file inside the project.尽管设置了正确的服务帐户并将它们作为 JSON 文件附加到项目中,但我目前在验证新的 Google AutoML API 时遇到了问题。

Has anyone else had this issue?其他人遇到过这个问题吗? If so how did you go about resolving?如果是这样,你是如何解决的?

I'm using this package: https://www.npmjs.com/package/@google-cloud/automl#installing-the-client-library我正在使用这个包: https : //www.npmjs.com/package/@google-cloud/automl#installing-the-client-library

Have you set the environmental variable GOOGLE_APPLICATION_CREDENTIALS to point to your credentials JSON file?您是否将环境变量GOOGLE_APPLICATION_CREDENTIALS设置为指向您的凭证 JSON 文件? When you get this error, it usually means some other credentials info (like your default credentials) are being passed instead.当您收到此错误时,通常意味着正在传递一些其他凭据信息(例如您的默认凭据)。 Check in your node code that that environmental variable is pointing to the right json file.检查您的节点代码,该环境变量指向正确的 json 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM