spawn E2BIG error
aessig opened this issue · comments
aessig commented
Hello,
Does anyone ever have such an issue?
2022-05-12T13:13:57.864922492Z error callPython Error: spawn E2BIG
2022-05-12T13:13:57.864927331Z at ChildProcess.spawn (internal/child_process.js:408:11)
2022-05-12T13:13:57.864932243Z at Object.spawn (child_process.js:553:9)
2022-05-12T13:13:57.864937204Z at spawn (/usr/src/app/node_modules/cross-spawn/index.js:12:24)
2022-05-12T13:13:57.864942162Z at /usr/src/app/node_modules/@expo/spawn-async/build/spawnAsync.js:15:43
2022-05-12T13:13:57.864947244Z at new Promise (<anonymous>)
2022-05-12T13:13:57.864952628Z at spawnAsync (/usr/src/app/node_modules/@expo/spawn-async/build/spawnAsync.js:12:19)
2022-05-12T13:13:57.864957862Z at module.exports (/usr/src/app/src/libs/callPython.js:76:18)
2022-05-12T13:13:57.864963300Z at adminOperation2 (/usr/src/app/src/libs/adminOperation.js:65:31)
2022-05-12T13:13:57.864968436Z at enroll (/usr/src/app/src/libs/adminOperation.js:156:18)
2022-05-12T13:13:57.864973404Z at runMicrotasks (<anonymous>) {
2022-05-12T13:13:57.864978353Z errno: 'E2BIG',
2022-05-12T13:13:57.864983072Z code: 'E2BIG',
2022-05-12T13:13:57.864987804Z syscall: 'spawn'
2022-05-12T13:13:57.864992601Z }
James Ide commented
E2BIG is a standard POSIX error: https://man7.org/linux/man-pages/man3/errno.3.html. As you can see, this package just passes the args to cross-spawn, which passes them to child_process.spawn (which shows up in the stack trace).
If you can reproduce the error with this library but not with child_process.spawn, we can take a look at this with a repro case.