[Error] You may specify one with an environment variable named "GOOGLE_CLOUD_PROJECT"
See original GitHub issueI have this error. I followed the README.
UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 15) Error: Sorry, we cannot connect to Cloud Services without a project ID. You may specify one with an environment variable named "GOOGLE_CLOUD_PROJECT".
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Google cloud sdk environment variables - Stack Overflow
I tried running the command from my project, the command is running successfully in Google Cloud shell, but the error seems to be...
Read more >Use environment variables | Cloud Run Documentation
You can set environment variables using the Google Cloud console, ... and specify the name you want for the variable and its value...
Read more >Configure your environment | Cloud Functions for Firebase
i functions: Loaded environment variables from .env.projectId. Depending on your development workflow, it may be useful to add the generated .env.
Read more >Problems with Environment Variables
If you have already set the desired environment variable as described here and the ... Error message = "Environment variable set to non-existent...
Read more >Error Messages | Maps JavaScript API - Google Developers
However, you may want to notify the site owner if possible. API Key and Billing Errors. Troubleshooting. Under certain circumstances, a darkened map,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Works!!!
Navigate to the Google Cloud Console API & Services page
Select Create Credentials and create a Service account key
src/
folder, like this:src/default-service-key.json
Change
src/firestore.ts
and replace in lines 25 to 28:npm run build
npm run start:local
Okay, thanks for verifying the flow. I will have to update the README.