Recently I had noticed that sniffer had stopper working. Although fixer did work.
I started debugging the extension and found that I am getting this error:
rejected promise not handled within 1 second: Error: spawn EINVAL
extensionHostProcess.js:148
stack trace: Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:421:11)
at spawn (node:child_process:799:9)
at validate2 ({DIR}\out\main.js:6648:55)
Recently I had noticed that sniffer had stopper working. Although fixer did work.
I started debugging the extension and found that I am getting this error:
So when the
sniffer.ts
callsspawn
the process fails because it seems that something changed in windows OS https://github.com/nodejs/node/issues/52554The current solution is to add
{ shell: true }
option in thespawn
function.