
Try to close all models at "Manage Model">"Loaded", and restart DME from Tray Icon MenuĢ.

How to solve the problem that the Effect or Model cannot be displayed1. ProjectId: _GOOGLE_GCLOUD_PROJECT || process.env.Относно този софтуер Buy DME Get DMMD4 FreeBuy “DesktopMagicEngine” now and Get "DesktopMMD4: Born to Dance" After setting credentials and projectId, the error is gone. You can pass the credentials and projectId as environment variables. (/srv/node_modules/google-auth-library/build/src/auth/googleauth.js:248:31) at step (/srv/node_modules/google-auth-library/build/src/auth/googleauth.js:47:23) at Object.next (/srv/node_modules/google-auth-library/build/src/auth/googleauth.js:28:53) at fulfilled (/srv/node_modules/google-auth-library/build/src/auth/googleauth.js:19:58) at at process._tickDomainCallback (internal/process/next_tick.js:229:7) These options you can get from the service account json file.įor example, I am using Cloud Trace Node.js client library in my cloud functions.īefore I set the credentials and projectId, I got this error:Įrror: Unexpected error while acquiring application default credentials: Could not load the default credentials. Set private_key, client_email and projectId options for any GCP client library. You can use a service account and grant this service account proper permission. For local development and running on GCP, like Cloud Function, Compute Engine. I provide another way which is set the credentials manually. env file and include your file there and access it as others mentioned. socialape-15456-68dfdc857c55.json(In my case, both files are located: functions/index.js and functions/services.son in functions directory and in index.js file, I initialed my firebase admin sdk).Įx(node.js): const functions = require('firebase-functions') Now, if you save it into the same directory where you are initializeApp(), access that file like.You will prompt to download the file, download it to your functions directory in project( You can customize this as you want and if you pushing to github, make sure to ignore that file).From the pop up dialog select Key type as json and press create button.Now, you will see services accounts for your project, in the table find the row with column name name and value firebase-adminsdk, in that row click on Action dots and select Create key.Click on the Manage service account permissions in top right corner.Now we need to add serviceAccountKey.json file.Var serviceAccount = require("path/to/serviceAccountKey.json") Ĭredential: (serviceAccount), lang.Įx (node.js): var admin = require("firebase-admin") Copy the admin sdk configuration snippet from selecting your pro.Go to the firebase Project settings(click on setting icon from side nav).It worked when I deployed the functions but not in serve. I got this error because of initially I did like below: var admin = require("firebase-admin") Īdmin.initializeApp() // I didnt add anything because firebaserc file include appName Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to the

This), but accessible to your web server code. This directory must be private (you can't let anyone get access to Put the *.json file you just downloaded in a directory of your The fileĪutomatically downloads to your computer. On the Credentials page, select the Create credentials drop-down, thenįrom the Service account drop-down, select an existing service accountįor Key type, select the JSON key option, then select Create.

To get this file you need to follow these steps:įrom the project drop-down, select your project.

It should point to a file that defines the credentials. Second option is to set the environment variable GOOGLE_APPLICATION_CREDENTIALS. One option, as mentioned by others, is to use gcloud auth application-default login
