【Cloud Firestore(Mac)】環境変数に設定したGOOGLE_APPLICATION_CREDENTIALSを認識しない

473 views
Skip to first unread message

成龍

unread,
May 14, 2020, 1:46:06 PM5/14/20
to Google Cloud Pub/Sub Discussions
ターミナルで環境変数にGOOGLE_APPLICATION_CREDENTIALSを設定して実行するとGOOGLE_APPLICATION_CREDENTIALSを設定するようにとエラーになります。

FirestoreDb.Createの直前にSystem.Environment.SetEnvironmentVariableを使用して設定すると「Please check the value of the Environment Variable GOOGLE_APPLICATION_CREDENTIALS」とパスが存在しないとエラーになります。

JSONファイルはプロジェクトと同じディレクトリに置いています。

設定が足りないのでしょうか?パッケージが足りないのでしょうか?
よろしくお願いいたします。

George (Cloud Platform Support)

unread,
May 15, 2020, 11:03:09 AM5/15/20
to Google Cloud Pub/Sub Discussions
The language to be used in this group is English. You should post further replies in English. 

How did you set the GOOGLE_APPLICATION_CREDENTIALS environment variable? The error message appears to indicate that this variable is not set. You may refer to Setting the environment variable sub-chapter. 
Reply all
Reply to author
Forward
0 new messages