Error: spawn ENAMETOOLONG
See original GitHub issueDear 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:
- Created 3 years ago
- Comments:19 (10 by maintainers)
Top GitHub Comments
My copy of
aaa_v1.js
does not have 136 lines, butstartProcessing(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:@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.