question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Not signed up for Earth Engine -------from the server-auth-nodejs demo

See original GitHub issue

server-auth-nodejs/server.js

`const ee = require(“@google/earthengine”); const express = require(“express”); const privateKey = require(“./.private-key.json”); const port = process.env.PORT || 3000;

// Define endpoint at /mapid. const app = express().get(“/mapid”, (_, response) => { const srtm = ee.Image(“CGIAR/SRTM90_V4”); const slope = ee.Terrain.slope(srtm); slope.getMap({ min: 0, max: 60 }, ({ mapid }) => response.send(mapid)); });

console.log(“Authenticating Earth Engine API using private key…”); ee.data.authenticateViaPrivateKey( privateKey, () => { console.log(“Authentication successful.”); ee.initialize( null, null, () => { console.log(“Earth Engine client library initialized.”); app.listen(port); console.log(Listening on port ${port}); }, (err) => { console.log(err); console.log( Please make sure you have created a service account and have been approved. Visit https://developers.google.com/earth-engine/service_account#how-do-i-create-a-service-account to learn more. ); } ); }, (err) => { console.log(err); } );`

output:

G:\Paper\npm\earthengine-api\demos\server-auth-nodejs>node server Authenticating Earth Engine API using private key... Authentication successful. Error: Not signed up for Earth Engine. Visit https://earthengine.google.com/signup/ at module$contents$ee$apiclient_Call.callback (G:\Paper\npm\node_modules\@google\earthengine\build\main.js:21451:62) at G:\Paper\npm\node_modules\@google\earthengine\build\main.js:15221:25 at processTicksAndRejections (internal/process/task_queues.js:93:5) Please make sure you have created a service account and have been approved. Visit https://developers.google.com/earth-engine/service_account#how-do-i-create-a-service-account to learn more.

and, I find some clues on Google Cloud Platform about Google Earth Engine API’s log:

method: google.earthengine.v1alpha.EarthEngine.ListAlgorithms, code: 403, ratio: 100%

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

7reactions
kumpinarcommented, Nov 26, 2020
1reaction
ahnuljzcommented, Oct 10, 2020

so, I did it again and I found a mistake in my configurations and then it worked,thanks for the awareson platform.

by the way, I can give the newer some help if I konw.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error trying to connect Google Earth Engine API in Node.js ...
It seems that your computer cannot even contact the google engine service server. Maybe you should try to test your code in another...
Read more >
NPM Installation - Earth Engine - Google Developers
Users of your application do not need their own access to Earth Engine, and are not required to log in. In Node.js, only...
Read more >
Google Earth Engine ee.data.authenticateViaPrivateKey in ...
The issue I'm having is that the authentication is not working. I already tried the instructions in the google earth engine NPM installation ......
Read more >
Error messages - Resource Manager - Google Cloud
The request failed because it contained an invalid parameter or parameter value. Review the API documentation to determine which parameters are valid for...
Read more >
Authenticate with an ArcGIS identity (server) | ArcGIS REST JS
ArcGIS REST JS provides helper methods for the Node.js server environment to ... If you do not have an ArcGIS account you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found