child-shell icon indicating copy to clipboard operation
child-shell copied to clipboard

read ECONNRESET

Open RayeesMir opened this issue 7 years ago • 3 comments

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

RayeesMir avatar Jul 03 '18 10:07 RayeesMir

To be clear we are talking about AWS Lambda?

BenjaminMichael avatar Jul 30 '18 12:07 BenjaminMichael

@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

rannn505 avatar Dec 27 '19 14:12 rannn505

Lambda POC

rannn505 avatar Dec 27 '19 14:12 rannn505