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: spawn ENAMETOOLONG

See original GitHub issue

Dear Earth Engine team’s software. I am using the Earth Engine JavaScript API in a Node/Express application to make some calls to generate maps and tiles. And I got the issue like below. Would you please help? Thanks you very much!

`C:\Users\dn\AppData\Roaming\npm\node_modules\ee-runner\node_modules@google\earthengine\build\main.js:15312 throw callbackError; ^

Error: spawn ENAMETOOLONG at ChildProcess.spawn (internal/child_process.js:403:11) at spawn (child_process.js:553:9) at exports.XMLHttpRequest.send (C:\Users\dn\AppData\Roaming\npm\node_modules\ee-runner\node_modules\xmlhttprequest\lib\XMLHttpRequest.js:503:22) at Object.module$contents$ee$apiclient_apiclient.send (C:\Users\dn\AppData\Roaming\npm\node_modules\ee-runner\node_modules@google\earthengine\build\main.js:15594:13) at module$contents$ee$apiclient_EERequestService.send (C:\Users\dn\AppData\Roaming\npm\node_modules\ee-runner\node_modules@google\earthengine\build\main.js:15385:54) at module$exports$eeapiclient$promise_api_client.PromiseApiClient.$request (C:\Users\dn\AppData\Roaming\npm\node_modules\ee-runner\node_modules@google\earthengine\build\main.js:7952:69) at module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientImpl.compute (C:\Users\dn\AppData\Roaming\npm\node_modules\ee-runner\node_modules@google\earthengine\build\main.js:12385:26) at Object.ee.data.computeValue (C:\Users\dn\AppData\Roaming\npm\node_modules\ee-runner\node_modules@google\earthengine\build\main.js:20714:35) at ee.Geometry.ee.ComputedObject.getInfo (C:\Users\dn\AppData\Roaming\npm\node_modules\ee-runner\node_modules@google\earthengine\build\main.js:21292:18) at Object.<anonymous> (C:\Users\dn\AppData\Roaming\npm\node_modules\ee-runner\ssm_new.js:47:73) { errno: -4064, code: ‘ENAMETOOLONG’, syscall: ‘spawn’ }`

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
donmccurdycommented, Feb 4, 2021

My copy of aaa_v1.js does not have 136 lines, but startProcessing(taskId, params, callback) is another function that requires a callback to work reliably outside of the Code Editor. It may be easier to write an export this way:

var task = ee.batch.Export.image.toDrive({
 …
});

task.start(() => {
  console.log('Started task #' + task.id);
}, (error) => {
  console.log('Error: ' + error);
});

0reactions
donmccurdycommented, Feb 8, 2021

@gena thank you! 🙏

@giangde091285 reinstalling ee-runner with something like npm install ee-runner@0.0.36 should fix the issue mentioned in https://github.com/google/earthengine-api/issues/151#issuecomment-773652042, so that the rest of your code also runs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "Error: spawn ENAMETOOLONG" (probably cause ...
I expected the content of my JSON, but it throw this error message: (node:21792) UnhandledPromiseRejectionWarning: Error: spawn ENAMETOOLONG at ...
Read more >
npm pythonshell spawn ENAMETOOLONG error : r/node
Hello i'm using pythonshell in my node js project to do data clustering using sklearn library, it works fine when i'm sending small...
Read more >
3d-buildings-tiler error:spawn ENAMETOOLONG - Cesium ion
i process about 30K+ citygml files to 3dtiles use by 3d-buildings-tiler on windows 11 ./3d-buildings-tiler -I CityGML --input F:/gmls/1 ...
Read more >
Archive Files task fails with error ENAMETOOLONG if ...
Archive Files task fails with error ENAMETOOLONG if 'Prepend root folder name to archive paths' option is not checked and the ... error:...
Read more >
Deployment error - spawn ENAMETOOLONG
I'm trying to deploy a lambda function using the nodejs-typescript template, but I'm hitting the following error: Error: spawn ENAMETOOLONG.
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