Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript Error: You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at .... #72

Open
upendrasiripurapu opened this issue Oct 5, 2019 · 7 comments

Comments

@upendrasiripurapu
Copy link

I have already enabled billing to my google cloud project but still I'm getting this error. How can I resolve this?

You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started

I have installed the web app on Heroku and added the environmental variables as specified in the documentation.

@rolfb
Copy link

rolfb commented Apr 28, 2020

Having the same issue. Is there an example of how the referrer should be added? Or more details on how create the API key properly? It is the Maps Javascript API in Google Cloud Console which is correct? Or do you need more APIs?

@Sigura
Copy link
Contributor

Sigura commented Apr 28, 2020

Hello,

Yeah, it's it.

Sorry, but Google can change it at any time for any reason, that is why we don't do it.

background-geolocation-console can be used with three databases: firestore, postgres, sqllite; and various modifications: shared dashboard, etc.

Please use README.md to identify your modification.

@rolfb
Copy link

rolfb commented Apr 28, 2020

@Sigura Thanks, it was not database related, just Google Maps-related - but I got it fixed, see below.

@upendrasiripurapu It seems like the key is only read from heroku environment when you build the app, so if you changed the GOOGLE_MAPS_API_KEY on Heroku you need to push to Heroku in order for it to rebuild and use the new API key.

@rolfb
Copy link

rolfb commented Apr 28, 2020

@Sigura on that note, the server should read the value of GOOGLE_MAPS_API_KEY each time it is started, not just on build?

@Sigura
Copy link
Contributor

Sigura commented Jun 14, 2020

@rolfb GOOGLE_MAPS_API_KEY add to compiled by webpack on build

@jsvinueza
Copy link

hello, please help me

I try to install console on my server, I did the follow steps , but I can not to get success

  1. npm run server
  2. The browser show me: Cannot GET /

@Sigura
Copy link
Contributor

Sigura commented Jul 10, 2020

@jsvinueza please try those steps:

  1. npm i
  2. export DATABASE_URL=postgres://postgres:...@localhost:5432/geolocation && export GOOGLE_MAPS_API_KEY=AIz...Nkg && export SHARED_DASHBOARD= && export ADMIN_TOKEN= && export PASSWORD= && export FIREBASE_URL= && export FIREBASE_PRIVATE_KEY= && export FIREBASE_PROJECT_ID= && export FIREBASE_CLIENT_EMAIL= && NODE_ENV=production
  3. npm run build
  4. npm run server
  5. open: http://localhost:9000

NB!: NODE_ENV=production for not a dev server, and JWT_PRIVATE_KEY with JWT_PUBLIC_KEY.

additional option: please try docker-compose up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@rolfb @Sigura @upendrasiripurapu @jsvinueza and others