child-shell
child-shell copied to clipboard
read ECONNRESET
My requirement is to call PowerShell from node.js Lambda.
I packed PowerShell in same zip and change source path for spawn from
powershell to /var/task/powershell
PowerShell is starting but not finishing properly I think commands are executing also but I am not getting a result whether the command is finish or not. I am getting the ECONNRESET error
read ECONNRESET
at _errnoException (util.js:1022:11)
at Pipe.onread (net.js:628:25)
NPS> Process 11 started
Inside ShellWrite echo node-powershell
NPS> Command invoke started
NPS> echo node-powershell
inside invoke 1
Inside ShellWrite
inside invoke 2
Inside ShellWrite echo EOI
inside invoke 3
Inside ShellWrite
Error: read ECONNRESET
at _errnoException (util.js:1022:11)
at Pipe.onread (net.js:628:25)
I added some logs to confirm which part is making a problem. I am not getting any error on my local environment
To be clear we are talking about AWS Lambda?
@RayeesMir . Currently NPS wasn't tested on Lambda, I will be happy if you could do the research and add section in the documentation tips. Thx