gee-community / ee-runner

Command-line runner for Google Earth Engine Playground scripts
Apache License 2.0
67 stars 18 forks source link

ee-runner terminates silently with outstanding async calls #34

Closed donmccurdy closed 3 years ago

donmccurdy commented 3 years ago

Given a script that makes asynchronous requests...

var image = ee.Image(1);

console.log('evaluating...');
image.evaluate((info) => {
    console.log('evaluated: ', info);
});

... ee-runner prints evaluating... and then silently exits without resolving the open requests. Since synchronous requests are not well supported outside the Code Editor (see https://github.com/google/earthengine-api/issues/151, and https://github.com/driverdan/node-XMLHttpRequest/issues/176) I've been encouraging users to write async requests instead, but then seeing this error.

gena commented 3 years ago

Fixed, make sure the latest version is used:

npm install --save ee-runner@0.0.36