Error: Not signed up for Earth Engine -------from the server-auth-nodejs demo
See original GitHub issueserver-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:
- Created 3 years ago
- Reactions:1
- Comments:9
Top GitHub Comments
I found my mistake
https://developers.google.com/earth-engine/guides/service_account
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.